From 3f1e15995f6fb33d1618d56c6b46946960e9244a Mon Sep 17 00:00:00 2001 From: Arthur Date: Thu, 31 Aug 2023 09:45:28 +0800 Subject: [PATCH] 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) --- src/libnest2d/include/libnest2d/placers/nfpplacer.hpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libnest2d/include/libnest2d/placers/nfpplacer.hpp b/src/libnest2d/include/libnest2d/placers/nfpplacer.hpp index c722d0374..5efa398ab 100644 --- a/src/libnest2d/include/libnest2d/placers/nfpplacer.hpp +++ b/src/libnest2d/include/libnest2d/placers/nfpplacer.hpp @@ -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());