From 15bb0ee8966d597b18549b2b03e8f670850777c2 Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Thu, 4 Dec 2025 15:36:57 +0100 Subject: [PATCH] BIM: use optimalBoundingBox in getCutVolume --- src/Mod/BIM/ArchCommands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/BIM/ArchCommands.py b/src/Mod/BIM/ArchCommands.py index cfb393e89c..b26a28ae43 100644 --- a/src/Mod/BIM/ArchCommands.py +++ b/src/Mod/BIM/ArchCommands.py @@ -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