FIX: fitst layer bbox was wrong for multiple plates

brim bounding box is now shifted w.r.t. plate origin, need to modify the
no-brim shift the same way.

Change-Id: Iefa7287e2848aadbfc4a468bca394ecec48a1e7c
This commit is contained in:
Arthur authored and Lane.Wei committed 2023-07-07 17:52:43 +08:00
1 parent 4640cf9a1a
commit 0cad88309c
6 files changed
+21 -22

No files matched your search

-2
View File
@@ -2790,8 +2790,6 @@ int CLI::run(int argc, char **argv)
BBoxData data;
auto bb_scaled = obj->get_first_layer_bbox(data.area, data.layer_height, data.name);
auto bb = unscaled(bb_scaled);
bb.min -= orig2d;
bb.max -= orig2d;
bbox_all.merge(bb);
data.area *= (SCALING_FACTOR * SCALING_FACTOR); // unscale area
data.id = obj->id().id;