Skip to content

Commit

Permalink
Remove unused operators
Browse files Browse the repository at this point in the history
  • Loading branch information
kintel committed Mar 21, 2024
1 parent 50ca1f9 commit 42a61db
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
16 changes: 0 additions & 16 deletions src/geometry/manifold/ManifoldGeometry.cc
Expand Up @@ -106,22 +106,6 @@ std::shared_ptr<const PolySet> ManifoldGeometry::toPolySet() const {
return ps;
}

std::shared_ptr<manifold::Manifold> binOp(const manifold::Manifold& lhs, const manifold::Manifold& rhs, manifold::OpType opType) {
return std::make_shared<manifold::Manifold>(lhs.Boolean(rhs, opType));
}

ManifoldGeometry ManifoldGeometry::operator+(const ManifoldGeometry& other) const {
return {binOp(*this->manifold_, *other.manifold_, manifold::OpType::Add)};
}

ManifoldGeometry ManifoldGeometry::operator*(const ManifoldGeometry& other) const {
return {binOp(*this->manifold_, *other.manifold_, manifold::OpType::Intersect)};
}

ManifoldGeometry ManifoldGeometry::operator-(const ManifoldGeometry& other) const {
return {binOp(*this->manifold_, *other.manifold_, manifold::OpType::Subtract)};
}

void ManifoldGeometry::transform(const Transform3d& mat) {
glm::mat4x3 glMat(
// Column-major ordering
Expand Down
7 changes: 0 additions & 7 deletions src/geometry/manifold/ManifoldGeometry.h
Expand Up @@ -31,13 +31,6 @@ class ManifoldGeometry : public Geometry

[[nodiscard]] std::shared_ptr<const PolySet> toPolySet() const;

/*! union. */
ManifoldGeometry operator+(const ManifoldGeometry& other) const;
/*! intersection. */
ManifoldGeometry operator*(const ManifoldGeometry& other) const;
/*! difference. */
ManifoldGeometry operator-(const ManifoldGeometry& other) const;

void transform(const Transform3d& mat) override;
void resize(const Vector3d& newsize, const Eigen::Matrix<bool, 3, 1>& autosize) override;

Expand Down

0 comments on commit 42a61db

Please sign in to comment.