mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-07-05 17:17:06 +02:00
Extended Print::validate() to check, whether the objects
are inside the print volume.
This commit is contained in:
@@ -100,31 +100,7 @@ public:
|
||||
}
|
||||
|
||||
bool contains(const BoundingBox3Base<PointClass>& other) const {
|
||||
if (!contains(other.min))
|
||||
return false;
|
||||
|
||||
if (!contains(PointClass(other.max.x, other.min.y, other.min.z)))
|
||||
return false;
|
||||
|
||||
if (!contains(PointClass(other.max.x, other.max.y, other.min.z)))
|
||||
return false;
|
||||
|
||||
if (!contains(PointClass(other.min.x, other.max.y, other.min.z)))
|
||||
return false;
|
||||
|
||||
if (!contains(PointClass(other.min.x, other.min.y, other.max.z)))
|
||||
return false;
|
||||
|
||||
if (!contains(PointClass(other.max.x, other.min.y, other.max.z)))
|
||||
return false;
|
||||
|
||||
if (!contains(other.max))
|
||||
return false;
|
||||
|
||||
if (!contains(PointClass(other.min.x, other.max.y, other.max.z)))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
return contains(other.min) && contains(other.max);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user