From 011f0d7d0cafb6b8e0a6641b8272c0ed4e95fd00 Mon Sep 17 00:00:00 2001 From: "lane.wei" Date: Wed, 4 Sep 2024 08:43:24 +0800 Subject: [PATCH] FIX: model: fix the bbox computing issue when update_instances_print_volume_state JIRA: STUDIO-7498 Change-Id: I80fac3253d1bd6fcc49a4eb08dd68fe2e458c148 (cherry picked from commit 22feef013c2fc8c3c222a280e7b618d617ec041e) --- src/libslic3r/Model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/Model.cpp b/src/libslic3r/Model.cpp index 8f1653d5f4..56890fc214 100644 --- a/src/libslic3r/Model.cpp +++ b/src/libslic3r/Model.cpp @@ -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))