Finding the closest curve and creating a loft

Hello,

I have a set of four curves and I am looking to loft the closest two. I have the following code but it seems chunkey and I am sure that there is a better way to get this done, a shorter method and maybe more repeatable and reliable?

P.S. I have just been able to determine the distance between the closest two curves and was wondering how to now pair them.

Thank you so much for your help.

Curve loft problem.gh (26.9 KB)

The following is the expected result,

Curve loft problem_RE.gh (15.6 KB)

2 Likes

Thank you so much, this works perfectly :slight_smile:

1 Like