Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Cover entire hole if pockeet extension is bigger than hole.
  • Loading branch information
mlampert committed Jun 30, 2019
1 parent 4fb0b04 commit aa15a6c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Mod/Path/PathScripts/PathPocketShape.py
Expand Up @@ -211,7 +211,8 @@ def getWire(self):
if r > 0:
c1 = Part.makeCircle(r, circle.Center, circle.Axis, edge.FirstParameter * 180 / math.pi, edge.LastParameter * 180 / math.pi)
return [Part.Wire([edge]), Part.Wire([c1])]
return None
# the extension is bigger than the hole - so let's just cover the whole hole
return Part.Wire([edge])

else:
PathLog.track(self.feature, self.sub, type(edge.Curve), endPoints(edge))
Expand Down Expand Up @@ -546,7 +547,7 @@ def clasifySub(self, bs, sub):
# add faces for extensions
self.exts = []
for ext in self.getExtensions(obj):
wire = Part.Face(ext.getWire())
wire = ext.getWire()
if wire:
face = Part.Face(wire)
self.horiz.append(face)
Expand Down

0 comments on commit aa15a6c

Please sign in to comment.