Skip to content

Commit

Permalink
Merge pull request #3991 from Russ4262/patch-1
Browse files Browse the repository at this point in the history
Path: Fixes ticket #4471
  • Loading branch information
sliptonic committed Oct 27, 2020
2 parents 3c307b7 + 88f0ea6 commit 7f83281
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 7f83281

Please sign in to comment.