If an edge cannot be flipped, issue a warning and approximate it through straight line segments.

This commit is contained in:
Markus Lampert
2018-08-21 20:37:09 -07:00
committed by Yorik van Havre
parent 6e83baf1df
commit 478829510e
2 changed files with 14 additions and 1 deletions

View File

@@ -507,6 +507,8 @@ def flipEdge(edge):
return Part.Edge(flipped)
PathLog.warning(translate('PathGeom', "%s not support for flipping") % type(edge.Curve))
def flipWire(wire):
'''Flip the entire wire and all its edges so it is being processed the other way around.'''
edges = [flipEdge(e) for e in wire.Edges]