how to order edges in a sequence

Hi,

I use
Handle(TopTools_HSequenceOfShape) Edges = new TopTools_HSequenceOfShape();
to add all edges from a wire,which are not in sequence.How can I put them in sequence taking Orientation into consideration.

Marco Matt's picture

Take a look at ShapeAnalysis_WireOrder

Divya's picture

while trying to order the edges
the result of status() in ShapeAnalysis_WireOrder is :
-1 : some edges are reversed, but no gap remain

what does this mean?