From 3ae3cc9f5b7858af15cd0e148616cf7fc5c80540 Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Mon, 18 Jul 2022 08:52:39 +0200 Subject: [PATCH] Arch: Fix getCutVolume in ArchCommands.py --- src/Mod/Arch/ArchCommands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/Arch/ArchCommands.py b/src/Mod/Arch/ArchCommands.py index 18c9cf5471..12303dd84a 100644 --- a/src/Mod/Arch/ArchCommands.py +++ b/src/Mod/Arch/ArchCommands.py @@ -427,7 +427,8 @@ def getCutVolume(cutplane,shapes,clip=False,depth=None): return None,None,None ce = p.CenterOfMass ax = p.normalAt(0,0) - u = p.Vertexes[1].Point.sub(p.Vertexes[0].Point).normalize() + prm_range = p.ParameterRange # (uMin, uMax, vMin, vMax) + u = p.valueAt(prm_range[0], 0).sub(p.valueAt(prm_range[1], 0)).normalize() v = u.cross(ax) if not bb.isCutPlane(ce,ax): #FreeCAD.Console.PrintMessage(translate("Arch","No objects are cut by the plane)+"\n")