Added support for selecting the wall of a cylinder for pockets.

This commit is contained in:
Markus Lampert
2017-09-17 18:09:47 -07:00
parent 3fa235d064
commit 22194b27d4

View File

@@ -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: