FIX: auto-arranging made objects overlap with occluded region

finalAlign was not correct because the excluded regions are counted twice.

Jira: STUDIO-4259
Change-Id: Ie4ad167af8487ce7250b83d85f144ef01e60e00f
(cherry picked from commit 154de0d94ff34231a60966fb89cc14655cce8008)
This commit is contained in:
Arthur 2023-08-31 09:45:28 +08:00 committed by Lane.Wei
parent 3b78a6ea91
commit 3f1e15995f
1 changed files with 0 additions and 1 deletions

View File

@ -1130,7 +1130,6 @@ private:
return;
{ // find a best position inside NFP of fixed items (excluded regions), so the center of pile is cloest to bed center
RawShape objs_convex_hull = sl::convexHull(objs);
for (const Item &item : config_.m_excluded_regions) { excludes.push_back(item.transformedShape()); }
for (const Item &item : items_) {
if (item.isFixed()) {
excludes.push_back(item.transformedShape());