From 88f0ea629d0b234879e5fdad26966fa792f9d3bb Mon Sep 17 00:00:00 2001 From: Russell Johnson <47639332+Russ4262@users.noreply.github.com> Date: Thu, 22 Oct 2020 10:55:51 -0500 Subject: [PATCH] Path: Fixes ticket #4471 --- src/Mod/Path/PathScripts/PathProfile.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathProfile.py b/src/Mod/Path/PathScripts/PathProfile.py index 02e10b3fc2..6e14371688 100644 --- a/src/Mod/Path/PathScripts/PathProfile.py +++ b/src/Mod/Path/PathScripts/PathProfile.py @@ -745,17 +745,12 @@ class ObjectProfile(PathAreaOp.ObjectOp): # f = Part.makeFace(wire, 'Part::FaceMakerSimple') # if planar error, Comment out previous line, uncomment the next two (origWire, flatWire) = self._flattenWire(obj, wire, obj.FinalDepth.Value) - f = origWire.Wires[0] + f = flatWire.Wires[0] if f: - # shift the compound to the bottom of the base object for proper sectioning - zShift = ezMin - f.BoundBox.ZMin - newPlace = FreeCAD.Placement(FreeCAD.Vector(0, 0, zShift), f.Placement.Rotation) - f.Placement = newPlace - if self.expandProfile: shapeEnv = self._getExpandedProfileEnvelope(obj, Part.Face(f), False, obj.StartDepth.Value, ezMin) else: - shapeEnv = PathUtils.getEnvelope(base.Shape, subshape=f, depthparams=self.depthparams) + shapeEnv = PathUtils.getEnvelope(Part.Face(f), depthparams=self.depthparams) if shapeEnv: tup = shapeEnv, False, 'Profile', 0.0, 'X', obj.StartDepth.Value, obj.FinalDepth.Value