mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 02:37:51 -06:00
Fixed slicing of objects splitted into parts
This commit is contained in:
parent
946d43bc95
commit
74f350c84e
1 changed files with 7 additions and 0 deletions
|
@ -787,7 +787,14 @@ BoundingBoxf3 ModelObject::raw_bounding_box() const
|
||||||
if (v->is_model_part()) {
|
if (v->is_model_part()) {
|
||||||
if (this->instances.empty())
|
if (this->instances.empty())
|
||||||
throw std::invalid_argument("Can't call raw_bounding_box() with no instances");
|
throw std::invalid_argument("Can't call raw_bounding_box() with no instances");
|
||||||
|
|
||||||
|
#if ENABLE_MODELVOLUME_TRANSFORM
|
||||||
|
TriangleMesh vol_mesh(v->mesh);
|
||||||
|
vol_mesh.transform(v->get_matrix());
|
||||||
|
bb.merge(this->instances.front()->transform_mesh_bounding_box(vol_mesh, true));
|
||||||
|
#else
|
||||||
bb.merge(this->instances.front()->transform_mesh_bounding_box(v->mesh, true));
|
bb.merge(this->instances.front()->transform_mesh_bounding_box(v->mesh, true));
|
||||||
|
#endif // ENABLE_MODELVOLUME_TRANSFORM
|
||||||
}
|
}
|
||||||
return bb;
|
return bb;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue