From 22194b27d46208fe947d5bf9237f64c1dee0e89a Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Sun, 17 Sep 2017 18:09:47 -0700 Subject: [PATCH] Added support for selecting the wall of a cylinder for pockets. --- src/Mod/Path/PathScripts/PathPocketShape.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Mod/Path/PathScripts/PathPocketShape.py b/src/Mod/Path/PathScripts/PathPocketShape.py index ebc0a97356..350860fbfe 100644 --- a/src/Mod/Path/PathScripts/PathPocketShape.py +++ b/src/Mod/Path/PathScripts/PathPocketShape.py @@ -77,6 +77,11 @@ class ObjectPocket(PathPocketBase.ObjectPocket): if type(face.Surface) == Part.Plane and PathGeom.pointsCoincide(face.Surface.Axis, FreeCAD.Vector(0, 0, 1)): # it's a flat horizontal face horizontal.append(face) + elif type(face.Surface) == Part.Cylinder and PathGeom.pointsCoincide(face.Surface.Axis, FreeCAD.Vector(0, 0, 1)): + # vertical cylinder wall + circle = Part.makeCircle(face.Surface.Radius, face.Surface.Center) + disk = Part.Face(Part.Wire(circle)) + horizontal.append(disk) # move all horizontal faces to FinalDepth for face in horizontal: