fix for drilling in Compound objects.

Better check of hole face ordering.
This commit is contained in:
sliptonic
2016-11-06 17:42:50 -06:00
parent 4d0e4edefc
commit bbac77955f
2 changed files with 15 additions and 4 deletions

View File

@@ -100,7 +100,7 @@ class DRILLGate:
return False
if obj.ShapeType == 'Vertex':
drillable = True
elif obj.ShapeType == 'Solid':
elif obj.ShapeType in['Solid', 'Compound']:
if sub[0:4] == 'Face':
subobj = obj.getElement(sub)
drillable = isinstance(subobj.Edges[0].Curve, Part.Circle)