Line Direction of closed boundaries

Given a closed chain of boundary lines in the same plane, each line displaying different vector line directions, is there a way to change all the lines’ vector direction so they all read as a chain of vectors in counterclockwise direction?

I found a graphic way to do this but it is really cumbersome: 1) convert the closed boundaries into a surface by patch, then 2) find the face vertices, 3) convert the vertices to point, 4) build a polycurve by points, 5) deconstruct the polycurve to lines, 6) and then find the line direction.

Any other suggestion?

Create a PolyCurve.ByJoinedCurves, then retrieve its curves using PolyCurve.Curves. This new list of lines should have a consistent/reliable vector direction.

1 Like

Thanks Thomas