Circle packing with selectively fixed circle locations

Hey,

I haven’t used Kangaroo much - so I was wondering if someone could help me with a simple questions:

I would like to pack circles on a surface (similar to one of the example files for Kangaroo 2). However, I would like to fix the location of several select circles (which I would like to pick). For example (the green corner circles should stay fixed):

Circles can have all the same radius. I would also like to limit the new circles to the perimeter (boundary curve) of the surface (which they shouldn’t cross)

Cheers,
Ben

Grasshopper file:

FIXED_Circle-Pack.gh (18.4 KB)

Do you mean like this:
FIXED_Circle-Pack2.gh (14.6 KB)

It uses Anchors to keep the corner points in place, and also adds these points to the other ones for the collisions.

If you are also talking about having circles tangent to the boundary instead of their centres lying on it, this example should help:
https://github.com/Dan-Piker/Kangaroo-examples/blob/master/collisions_and_packing/CircleFill_Dome_tangentboundary.gh

1 Like

Hey Daniel. Exactly what I was looking for. Many thanks! Ben