Disable slicing when one object crosses the print volume boundary

This commit is contained in:
Enrico Turri 2018-07-18 14:26:42 +02:00
parent d672a69554
commit d805c8ac3b
9 changed files with 67 additions and 29 deletions

View file

@ -103,6 +103,10 @@ public:
bool contains(const BoundingBox3Base<PointClass>& other) const {
return contains(other.min) && contains(other.max);
}
bool intersects(const BoundingBox3Base<PointClass>& other) const {
return (min.x < other.max.x) && (max.x > other.min.x) && (min.y < other.max.y) && (max.y > other.min.y) && (min.z < other.max.z) && (max.z > other.min.z);
}
};
class BoundingBox : public BoundingBoxBase<Point>