Draft: Reverting provisorily to the old version of DraftGeomUtils.sortEdges
This commit is contained in:
parent
f0c59e4cc2
commit
16e8b0ee3f
|
@ -579,7 +579,7 @@ def isLine(bsp):
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def sortEdges(edges):
|
def sortEdgesNew(edges):
|
||||||
"""Sort edges in path order, i.e., such that the end point of edge N
|
"""Sort edges in path order, i.e., such that the end point of edge N
|
||||||
equals the start point of edge N+1.
|
equals the start point of edge N+1.
|
||||||
"""
|
"""
|
||||||
|
@ -767,6 +767,11 @@ def flattenWire(wire):
|
||||||
verts.append(o)
|
verts.append(o)
|
||||||
w = Part.makePolygon(verts)
|
w = Part.makePolygon(verts)
|
||||||
return w
|
return w
|
||||||
|
|
||||||
|
def sortEdges(edges):
|
||||||
|
"define here which version to use"
|
||||||
|
#return sortEdgesNew(edges)
|
||||||
|
return sortEdgesOld(edges)
|
||||||
|
|
||||||
|
|
||||||
def findWires(edgeslist):
|
def findWires(edgeslist):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user