From 42a61db309a06a324bc3118d6edcb9ab201971cf Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Wed, 20 Mar 2024 23:32:00 -0400 Subject: [PATCH] Remove unused operators --- src/geometry/manifold/ManifoldGeometry.cc | 16 ---------------- src/geometry/manifold/ManifoldGeometry.h | 7 ------- 2 files changed, 23 deletions(-) diff --git a/src/geometry/manifold/ManifoldGeometry.cc b/src/geometry/manifold/ManifoldGeometry.cc index 75df0711f2..74c55672b6 100644 --- a/src/geometry/manifold/ManifoldGeometry.cc +++ b/src/geometry/manifold/ManifoldGeometry.cc @@ -106,22 +106,6 @@ std::shared_ptr ManifoldGeometry::toPolySet() const { return ps; } -std::shared_ptr binOp(const manifold::Manifold& lhs, const manifold::Manifold& rhs, manifold::OpType opType) { - return std::make_shared(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 diff --git a/src/geometry/manifold/ManifoldGeometry.h b/src/geometry/manifold/ManifoldGeometry.h index aea2771744..618d3150a6 100644 --- a/src/geometry/manifold/ManifoldGeometry.h +++ b/src/geometry/manifold/ManifoldGeometry.h @@ -31,13 +31,6 @@ class ManifoldGeometry : public Geometry [[nodiscard]] std::shared_ptr 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& autosize) override;