How to sort curves stacked together from the project on plane note?

Hi my friends,

I am trying to sort curves stacked together and pick the ones I need to form enclosed rectangles.


The orange color marks to curves I want to extract and the red points are points I want to connect.
I wonder how to do it.
SortStackLine.gh (286.9 KB)
Sincerely,

Like this?


SortStackLine_re.gh (293.0 KB)

2 Likes

Thanks, Kim, yes, very cool, by using mesh shadow and sorting with z values.