Sorting and analysis of curves

Hey there,
I have these sets of curves (of an architectural view) and I want to put them into lists. The first list should be the outer curves. Next list should be the outer frame of the windows, third list should be the inner frame and so on. Is there the possibility to sort them from the outside moving to the inside?

thank you in advance
Alessandro

Welcome @alessandro.mac-nelly,

You could get the area of each of your curves and sort them by these values.

Possibly not the best way of doing it and you’d have to modify the definition depending on how many nested layers there are but…

SortCurves.gh (7.2 KB)

You can separate them by length

1 Like

In addition to the ways mentioned, you could do it like this with native components.

1 Like