The list of vertexes returned by wire.OrderedVertexes is ok if the wire is closed. If the wire is not closed, the last vertexes is missing in the list.
Download example brep file to use with above script.
Code: Select all
#!/bin/bash import FreeCAD as F import Part as FP wire = FP.read("test.brep").Wires print "Number of Vertexes in the wire = ",len(wire.Vertexes) print "Number of Vertexes returned by OrderedVertexes = ",len(wire.OrderedVertexes)