FIX: model: fix the bbox computing issue when update_instances_print_volume_state

JIRA: STUDIO-7498
Change-Id: I80fac3253d1bd6fcc49a4eb08dd68fe2e458c148
This commit is contained in:
lane.wei 2024-09-04 08:43:24 +08:00
parent 286eca79c2
commit 22feef013c
1 changed files with 2 additions and 1 deletions

View File

@ -2835,8 +2835,9 @@ unsigned int ModelObject::update_instances_print_volume_state(const BuildVolume
{
case BuildVolume::Type::Rectangle:
{
BoundingBoxf3 transformed_bb = bb.transformed(matrix);
BoundingBoxf3 transformed_bb = vol->get_convex_hull().transformed_bounding_box(matrix);
state = build_volume.volume_state_bbox(transformed_bb);
//state = build_volume.object_state(vol->mesh().its, matrix.cast<float>(), true /* may be below print bed */);
break;
}
case BuildVolume::Type::Circle: