From 4cd519107384fd1fb76cf3bf5c838d24db9980e1 Mon Sep 17 00:00:00 2001 From: Russell Johnson <47639332+Russ4262@users.noreply.github.com> Date: Sat, 30 May 2020 10:03:14 -0500 Subject: [PATCH] Path: Extend `ClearEdges` to `Perimeter` boundary usage. --- src/Mod/Path/PathScripts/PathMillFace.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathMillFace.py b/src/Mod/Path/PathScripts/PathMillFace.py index 89e68d25f3..b8326f4cfb 100644 --- a/src/Mod/Path/PathScripts/PathMillFace.py +++ b/src/Mod/Path/PathScripts/PathMillFace.py @@ -182,8 +182,14 @@ class ObjectFace(PathPocketBase.ObjectPocket): 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...")