Populating a shape with non-intersecting, parametric circles

Hello,

I’m very new to grasshopper and I’m trying to fill a shape with a static number of circles (60). These circles cannot intersect and would live within the shape, but the size of the circle CAN change. Ideally if the circles are smaller their position would change to evenly redistribute the spacing between them.

I’m able to put points in the shape and parametrically change the size of the circles, but then I try to add in TangentInCircles or Proximity 2D (nodes that I’ve seen on other forum posts) and I start going nowhere fast. I’m starting to think Populate Geometry isn’t the best place to start with this problem. Any advice would be very helpful!
trilobal populate 01.gh (7.0 KB)
blank trilobal.3dm (7.9 MB)

“circle packing”
https://discourse.mcneel.com/tag/circlepacking

2 Likes

Thank you! I used a script from another post and tweaked it to fit my needs. Much appreciated!
CirclePackingShape.gh (10.7 KB)