BIM: use optimalBoundingBox in getCutVolume

This commit is contained in:
Roy-043
2025-12-04 15:36:57 +01:00
committed by Yorik van Havre
parent 88b5cde45f
commit 15bb0ee896

View File

@@ -487,9 +487,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