Circle Packing + Wrap After Pack

Hello,

I am working on a definition that will allow me to circle pack a defined amount of circles with specific radii.

I currently have Kangaroo working to allow me to circle pack and then modify by grabbing and moving circles around the inside of the bounding circle.

I now need to ‘wrap’ the circles that were packed so that they stay as close together as possible. Please see images below for reference.


Preferably, all this should be done as combined goals instead of having to run a bouncy solver twice - once to circle pack and then once to wrap.

Any suggestions? Thanks.
Circle Packing_Add Wrap.gh (29.4 KB)

Hi @Dominic_Large

If it is only about pulling the shapes closer together, rather than specifically creating a curve wrapping around them, a simpler way could be to connect them all with weak Coincident goals like this:
Circle Packing_CoincidentPull.gh (28.2 KB)

Also - I see here you pack circles then fit polygons in these circles, but if it is actually the polygons you want to pack closely, another option would be to use CurveCollide on the polygons directly.

1 Like

That is exactly what I was looking for! Thank you!

Hi @DanielPiker
I am interested in how this script might work. I am currently working on a collaborative project that has more intricate corner cutouts and roundness on a sphere. Would you by chance have any idea of how this might work? We currently want to follow the edges of our supposed surface, but with our current script, it is working but not to the extent of filling them up correctly, very sporadic and not consistent. You seem to be very skilled in this field, would it be possible if we could link further?