Brep edges sorting

How can I sort brep edges A like brep edges B?


unnamed.gh (29.6 KB)

Hi @Yatchun,

You can use flip curve in combination with a reference circle.


unnamed.gh (33.7 KB)


How understand how the markup section works ?

circles are always drawn the same way. If the normals of the surfaces are in the same direction it always works.

According to your way to do it, there will always be some unexpected results, I want to get the result is the same as the B order, but the fact is not!


unnamed1.gh (35.0 KB)


unnamed1revA.gh (37.6 KB)

Thank you all.