Improved robustness of slicing when the slicing plane

crosses a horizontal plane of an object exactly.
Should improve Github issues #831, #895, #1102
This commit is contained in:
bubnikv
2018-08-08 16:24:10 +02:00
parent 93b8f3147c
commit 00e9f07a03
5 changed files with 188 additions and 86 deletions

View File

@@ -613,6 +613,7 @@ const BoundingBoxf3& ModelObject::bounding_box() const
BoundingBoxf3 raw_bbox;
for (const ModelVolume *v : this->volumes)
if (! v->modifier)
// mesh.bounding_box() returns a cached value.
raw_bbox.merge(v->mesh.bounding_box());
BoundingBoxf3 bb;
for (const ModelInstance *i : this->instances)