Finding closest pairs among two lists of curves

#1

Hi, I have been trying to overcome this problem for a while now with no success, any help would be much appreciated.

I have two lists of curves, one representing the boundary of a parcel, one representing the centerlines of nearby streets. I am trying to match each property line with the closest street segment. So far I have managed to get a point on the street that I want paired with each property line using the closest point component. I haven’t been able to isolate the correct street curves though. I hope this is clear, thanks in advance,
David

Finding pairs of curves.3dm (23.7 KB)
Finding pairs of curves.gh (14.8 KB)

0 Likes

(Erick Vásquez) #2

sort your street curves as well and remove duplicates.

Finding pairs of curves_ev.gh (17.0 KB)

0 Likes

#3

Thanks Erick! I had to make a couple of changes to match the indices of the corresponding curves but your solution essentially works. Here are the changes I made.

Finding pairs of curves_dk.gh (13.8 KB)

0 Likes