Return A List of Points From Intersect That Create a Clockwise Polygon

Does anyone have an example of how to sort points retrieved from intersection of geometry into a ordered list of points either clockwise or counterclockwise that forms a closed polygon. Trying to avoid self crossing polygon.

PointsSequence.dyn (10.0 KB)


Thanks so much Vikram, i will turn this into a function and share when done.

1 Like

Vikram, do you know how this could be modified to determine the rotation axis?

PointsSequence.dyn (9.4 KB)