Sorting/organizing a list of curves


Im trying to sort this list of curves so i can adjust them for 3d printing, but since the curves were dispatched rebuilt then weaved back together they are out of order and thus wont connect to be a clean 3d printable poly line? what would be the best way to sort this list?
I was thinking maybe flipping it then reconnecting but I’m not sure how to do that or sorting the list with regard to the distance from 0 but im again not sure how to do that

use boundingbox of each curve
get lower left corner (A) → z-Value.
use those z-Values as keys to sort the curves.

shorten the curves
connect them.
join them.

contours_to_path_00.gh (19.9 KB)

hope this helps - kind regards -tom

1 Like