Grasshopper Connect closest Points on Circles with a Line

Hi, I am new to grasshopper…

I like to connect my circles at the division points to the near circles around it by Lines (I drew them in yellow).
thanks for your help!

Circles Help.gh (4.1 KB)

Hi,

This could be a way. It searches for the closest pairs of points. However those are not exactly the ones you drew.

Circles Help.gh (6.7 KB)

1 Like

This isn’t what you asked for but maybe it’s what you want?


Circles_connect_2023Mar14a.gh (11.1 KB)

2 Likes

Thank you very much!!

is there a way, that you also can adapt the code, so that when you set mutliple circles, so the connections only happen there, where the nearest, say 3 circles are. So not every point on the circle is connected with all the nearest points on all the cirlces.

1 Like

This sounds more and more like you’d need a mesh to define which relationships are allowed between points…

Circles Help_mesh.gh (13.8 KB)

5 Likes

Check this as well

Circles Help_.gh (19.5 KB)

3 Likes


Circles_connect_2023Mar14b.gh (13.6 KB)

6 Likes