diff options
author | Enrico Turri <enricoturri@seznam.cz> | 2018-01-17 12:39:05 +0300 |
---|---|---|
committer | Enrico Turri <enricoturri@seznam.cz> | 2018-01-17 12:39:05 +0300 |
commit | a417cf955d1300558f8bfa231984656f69a6d52d (patch) | |
tree | 92ea84d72963673f00c42cd6e92c55d4f7a21174 /xs/src/libslic3r/BoundingBox.hpp | |
parent | c63e6b74fa15d69bb0ca9ab5b62f8cfd3129d616 (diff) |
GCode Preview - Code cleanup
Diffstat (limited to 'xs/src/libslic3r/BoundingBox.hpp')
-rw-r--r-- | xs/src/libslic3r/BoundingBox.hpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/xs/src/libslic3r/BoundingBox.hpp b/xs/src/libslic3r/BoundingBox.hpp index 1a15315fb..a7334308c 100644 --- a/xs/src/libslic3r/BoundingBox.hpp +++ b/xs/src/libslic3r/BoundingBox.hpp @@ -23,8 +23,6 @@ public: BoundingBoxBase() : defined(false) {}; BoundingBoxBase(const PointClass &pmin, const PointClass &pmax) : min(pmin), max(pmax), defined(pmin.x < pmax.x && pmin.y < pmax.y) {} -//############################################################################################################ -#if ENRICO_GCODE_PREVIEW BoundingBoxBase(const std::vector<PointClass>& points) { if (points.empty()) @@ -42,12 +40,6 @@ public: } this->defined = (this->min.x < this->max.x) && (this->min.y < this->max.y); } -#else -//############################################################################################################ - BoundingBoxBase(const std::vector<PointClass> &points); -//############################################################################################################ -#endif // ENRICO_GCODE_PREVIEW -//############################################################################################################ void merge(const PointClass &point); void merge(const std::vector<PointClass> &points); void merge(const BoundingBoxBase<PointClass> &bb); @@ -78,8 +70,6 @@ public: BoundingBox3Base(const PointClass &pmin, const PointClass &pmax) : BoundingBoxBase<PointClass>(pmin, pmax) { if (pmin.z >= pmax.z) BoundingBoxBase<PointClass>::defined = false; } -//############################################################################################################ -#if ENRICO_GCODE_PREVIEW BoundingBox3Base(const std::vector<PointClass>& points) : BoundingBoxBase<PointClass>(points) { @@ -95,12 +85,6 @@ public: } this->defined &= (this->min.z < this->max.z); } -#else -//############################################################################################################ - BoundingBox3Base(const std::vector<PointClass> &points); -//############################################################################################################ -#endif // ENRICO_GCODE_PREVIEW -//############################################################################################################ void merge(const PointClass &point); void merge(const std::vector<PointClass> &points); void merge(const BoundingBox3Base<PointClass> &bb); @@ -138,15 +122,7 @@ class BoundingBox3 : public BoundingBox3Base<Point3> public: BoundingBox3() : BoundingBox3Base<Point3>() {}; BoundingBox3(const Point3 &pmin, const Point3 &pmax) : BoundingBox3Base<Point3>(pmin, pmax) {}; -//############################################################################################################ -#if ENRICO_GCODE_PREVIEW BoundingBox3(const Points3& points) : BoundingBox3Base<Point3>(points) {}; -#else -//############################################################################################################ - BoundingBox3(const std::vector<Point3> &points) : BoundingBox3Base<Point3>(points) {}; -//############################################################################################################ -#endif // ENRICO_GCODE_PREVIEW -//############################################################################################################ }; class BoundingBoxf : public BoundingBoxBase<Pointf> |