Skip to content

Commit

Permalink
Path: Extend ClearEdges to Perimeter boundary usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
Russ4262 committed May 31, 2020
1 parent 024d23b commit 4cd5191
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Mod/Path/PathScripts/PathMillFace.py
Expand Up @@ -182,8 +182,14 @@ def areaOpShapes(self, obj):
includedShape = Part.makeCompound(includedFaces)
includedEnv = PathUtils.getEnvelope(oneBase[0].Shape, subshape=includedShape, depthparams=self.depthparams)
env = stockEnv.cut(includedEnv)
else:
env = PathUtils.getEnvelope(partshape=planeshape, depthparams=self.depthparams)
elif obj.BoundaryShape == 'Perimeter':
if obj.ClearEdges:
psZMin = planeshape.BoundBox.ZMin
ofstShape = PathSurfaceSupport.extractFaceOffset(planeshape, self.radius * 1.25, planeshape)
ofstShape.translate(FreeCAD.Vector(0.0, 0.0, psZMin - ofstShape.BoundBox.ZMin))
env = PathUtils.getEnvelope(partshape=ofstShape, depthparams=self.depthparams)
else:
env = PathUtils.getEnvelope(partshape=planeshape, depthparams=self.depthparams)

if holeShape:
PathLog.info("Processing holes...")
Expand Down

0 comments on commit 4cd5191

Please sign in to comment.