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:
parent
e381b2332a
commit
d585499825
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user