mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 10:02:12 +00:00
FIX: model: fix the bbox computing issue when update_instances_print_volume_state
JIRA: STUDIO-7498 Change-Id: I80fac3253d1bd6fcc49a4eb08dd68fe2e458c148 (cherry picked from commit 22feef013c2fc8c3c222a280e7b618d617ec041e)
This commit is contained in:
@@ -3344,7 +3344,7 @@ ModelInstanceEPrintVolumeState ModelInstance::calc_print_volume_state(const Buil
|
||||
|
||||
const Transform3d matrix = this->get_matrix() * vol->get_matrix();
|
||||
|
||||
const auto bboxt = bb.transformed(matrix);
|
||||
const auto bboxt = vol->get_convex_hull().transformed_bounding_box(matrix);
|
||||
const BoundingBoxf bbox2d{to_2d(bboxt.min), to_2d(bboxt.max)};
|
||||
BuildVolume::ObjectState state;
|
||||
if (!build_volume.bounding_volume2d().inflated(BuildVolume::SceneEpsilon).overlap(bbox2d))
|
||||
|
||||
Reference in New Issue
Block a user