Make DraftGeomUtils.findWires use Part.sortEdges

Renamed the original DraftGeomUtils.findWires() to findWiresOld2(). The
original findWires() has a bug which may cause missing edge(s).
Besides, using C++ implementation of Part.sortEdges will have better
performance.
This commit is contained in:
Zheng, Lei 2017-01-03 17:05:28 +08:00
parent e381b2332a
commit d585499825

View File

@ -870,8 +870,10 @@ def flattenWire(wire):
w = Part.makePolygon(verts)
return w
def findWires(edgeslist):
return [ Part.Wire(e) for e in Part.sortEdges(edgeslist)]
def findWiresOld2(edgeslist):
'''finds connected wires in the given list of edges'''
def touches(e1,e2):