Skip to content

Commit

Permalink
Path: Fixes ticket #4471
Browse files Browse the repository at this point in the history
  • Loading branch information
Russ4262 committed Oct 22, 2020
1 parent 318312b commit 88f0ea6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/Mod/Path/PathScripts/PathProfile.py
Expand Up @@ -745,17 +745,12 @@ def _processEdges(self, obj):
# 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
Expand Down

0 comments on commit 88f0ea6

Please sign in to comment.