Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'xs/src/libslic3r/BoundingBox.cpp')
-rw-r--r--xs/src/libslic3r/BoundingBox.cpp41
1 files changed, 0 insertions, 41 deletions
diff --git a/xs/src/libslic3r/BoundingBox.cpp b/xs/src/libslic3r/BoundingBox.cpp
index 929488a3a..91ba88d84 100644
--- a/xs/src/libslic3r/BoundingBox.cpp
+++ b/xs/src/libslic3r/BoundingBox.cpp
@@ -4,50 +4,9 @@
namespace Slic3r {
-//############################################################################################################
-#if !ENRICO_GCODE_PREVIEW
-//############################################################################################################
-template <class PointClass>
-BoundingBoxBase<PointClass>::BoundingBoxBase(const std::vector<PointClass> &points)
-{
- if (points.empty())
- CONFESS("Empty point set supplied to BoundingBoxBase constructor");
- typename std::vector<PointClass>::const_iterator it = points.begin();
- this->min.x = this->max.x = it->x;
- this->min.y = this->max.y = it->y;
- for (++it; it != points.end(); ++it) {
- this->min.x = std::min(it->x, this->min.x);
- this->min.y = std::min(it->y, this->min.y);
- this->max.x = std::max(it->x, this->max.x);
- this->max.y = std::max(it->y, this->max.y);
- }
- this->defined = true;
-}
-//############################################################################################################
-#endif // !ENRICO_GCODE_PREVIEW
-//############################################################################################################
template BoundingBoxBase<Point>::BoundingBoxBase(const std::vector<Point> &points);
template BoundingBoxBase<Pointf>::BoundingBoxBase(const std::vector<Pointf> &points);
-//############################################################################################################
-#if !ENRICO_GCODE_PREVIEW
-//############################################################################################################
-template <class PointClass>
-BoundingBox3Base<PointClass>::BoundingBox3Base(const std::vector<PointClass> &points)
- : BoundingBoxBase<PointClass>(points)
-{
- if (points.empty())
- CONFESS("Empty point set supplied to BoundingBox3Base constructor");
- typename std::vector<PointClass>::const_iterator it = points.begin();
- this->min.z = this->max.z = it->z;
- for (++it; it != points.end(); ++it) {
- this->min.z = std::min(it->z, this->min.z);
- this->max.z = std::max(it->z, this->max.z);
- }
-}
-//############################################################################################################
-#endif // !ENRICO_GCODE_PREVIEW
-//############################################################################################################
template BoundingBox3Base<Pointf3>::BoundingBox3Base(const std::vector<Pointf3> &points);
BoundingBox::BoundingBox(const Lines &lines)