make deburr ignore non-vertical faces

fixes #4327
This commit is contained in:
sliptonic
2020-10-07 22:50:00 -05:00
parent b5f37f06aa
commit ed61873b2c
2 changed files with 38 additions and 8 deletions

View File

@@ -107,15 +107,21 @@ class CHAMFERGate(PathBaseGate):
if math.fabs(shape.Volume) < 1e-9 and len(shape.Wires) > 0:
return True
if 'Edge' == shape.ShapeType or 'Face' == shape.ShapeType:
if shape.ShapeType == 'Edge':
return True
if (shape.ShapeType == 'Face'
and shape.normalAt(0,0) == FreeCAD.Vector(0,0,1)):
return True
if sub:
subShape = shape.getElement(sub)
if 'Edge' == subShape.ShapeType or 'Face' == subShape.ShapeType:
if subShape.ShapeType == 'Edge':
return True
elif (subShape.ShapeType == 'Face'
and subShape.normalAt(0,0) == FreeCAD.Vector(0,0,1)):
return True
print(shape.ShapeType)
return False