Hi everyone, I’m working on a very simple circle packing system: I add a random point on a surface, find the largest possible radius without conflicting with the borders of the surface, draw the circle, then I pick another random point on the surface but outside the previously drawn circle, find the largest radius again (avoiding both the borders and the previous circle), and so on… The system works fairly well, but the issue is that I manually copy and paste a cluster each time to repeat the action. Could someone help me understand how to create a loop where I can set the number of iterations? That way, the script would be much more elegant. Thanks everyone!
circle paking 02 nico.gh (33.8 KB)
circle paking 02 nico a.gh (35.2 KB)
2 Likes
Thanks you a lots!!!really helpful