Sorting Curves bound by polygons

unhandled

(David S. Mavrov) #1

I have trouble sorting a set of curves bound by polygons. After using the Point in Curves component, I some of the curves are missing. I get 9,9 and 10 curves in each branch instead of 10,10 and 10.

Sorting Curves.gh (85.8 KB)

One way which kind of works is this:

Curves


#2

Another way is do collision test with boundary and polylines…

Sorting Curves_re.gh (88.9 KB)


(David S. Mavrov) #3

Oh this is clever. I had no idea it even existed :smiley: Love it!!! Thank you once again!


#4

After seeing this message when opening your file:

missing

I see nothing when the file is opened… After sorting through the code, the simplified version looks like this to me:


Sorting_Curves_2018Apr5a.gh (147.3 KB)