ENH: sync master with auto-arranging and brim

auto-arranging considers wipe tower from smooth timelapse

Change-Id: I5dd72260c777abfd2894776b2588bb3ff4224416
This commit is contained in:
Arthur 2023-09-18 20:42:57 +08:00 committed by Lane.Wei
parent 52a52ffc08
commit 0b4b6cde4f
3 changed files with 31 additions and 44 deletions

View file

@ -1130,11 +1130,9 @@ 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()) {
if (!(item.is_wipe_tower && !need_wipe_tower))
excludes.push_back(item.transformedShape());
excludes.push_back(item.transformedShape());
}
}