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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user