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:
lane.wei
2024-09-04 08:43:24 +08:00
committed by Noisyfox
parent 5474cff20c
commit 011f0d7d0c

View File

@@ -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))