BIM: use optimalBoundingBox in getCutVolume

(cherry picked from commit 15bb0ee896)
This commit is contained in:
Roy-043
2025-12-15 21:23:02 +01:00
committed by Max Wilfinger
parent 4559d078e4
commit 0e490cae46
+2 -2
View File
@@ -478,9 +478,9 @@ def getCutVolume(cutplane, shapes, clip=False, depth=None):
if not isinstance(shapes, list):
shapes = [shapes]
# building boundbox
bb = shapes[0].BoundBox
bb = shapes[0].optimalBoundingBox()
for sh in shapes[1:]:
bb.add(sh.BoundBox)
bb.add(sh.optimalBoundingBox())
bb.enlarge(1)
# building cutplane space
um = vm = wm = 0