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

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2017-06-06 20:12:46 +0300
committerbubnikv <bubnikv@gmail.com>2017-06-06 20:12:46 +0300
commit53d08d1883132bdb938d3586b3ec9d07b4e3b987 (patch)
tree7aa6514f16e6d8375bdabf8470049b267f187abb
parent0816c995a7788dd3341567dbfb3e35d389666656 (diff)
New BoundingBox3 class.
-rw-r--r--xs/src/libslic3r/BoundingBox.hpp19
1 files changed, 12 insertions, 7 deletions
diff --git a/xs/src/libslic3r/BoundingBox.hpp b/xs/src/libslic3r/BoundingBox.hpp
index 8a562c789..e55a56622 100644
--- a/xs/src/libslic3r/BoundingBox.hpp
+++ b/xs/src/libslic3r/BoundingBox.hpp
@@ -85,19 +85,24 @@ class BoundingBox : public BoundingBoxBase<Point>
friend BoundingBox get_extents_rotated(const Points &points, double angle);
};
-/*
-class BoundingBox3 : public BoundingBox3Base<Point3> {};
-*/
+class BoundingBox3 : public BoundingBox3Base<Point3>
+{
+ BoundingBox3() : BoundingBox3Base<Point3>() {};
+ BoundingBox3(const Point3 &pmin, const Point3 &pmax) : BoundingBox3Base<Point3>(pmin, pmax) {};
+ BoundingBox3(const std::vector<Point3> &points) : BoundingBox3Base<Point3>(points) {};
+};
-class BoundingBoxf : public BoundingBoxBase<Pointf> {
- public:
+class BoundingBoxf : public BoundingBoxBase<Pointf>
+{
+public:
BoundingBoxf() : BoundingBoxBase<Pointf>() {};
BoundingBoxf(const Pointf &pmin, const Pointf &pmax) : BoundingBoxBase<Pointf>(pmin, pmax) {};
BoundingBoxf(const std::vector<Pointf> &points) : BoundingBoxBase<Pointf>(points) {};
};
-class BoundingBoxf3 : public BoundingBox3Base<Pointf3> {
- public:
+class BoundingBoxf3 : public BoundingBox3Base<Pointf3>
+{
+public:
BoundingBoxf3() : BoundingBox3Base<Pointf3>() {};
BoundingBoxf3(const Pointf3 &pmin, const Pointf3 &pmax) : BoundingBox3Base<Pointf3>(pmin, pmax) {};
BoundingBoxf3(const std::vector<Pointf3> &points) : BoundingBox3Base<Pointf3>(points) {};