Circle Packing in Rectangle with known Quantity & Radius of Circles

I’m looking for a kangaroo algorithm that has the following constraints:

  1. Must take a list of known circles and collection of known radii.
  2. Must respect a minimum distance between circles.
  3. Must be contained within a rectangular surface.
  4. Must be distributed across the entire surface.

I’m sure I’ve seen them in the forum before, but at this time I cannot locate one.

Using Rhino7 and Kangaroo2.


I’m using this algorithm for circle packing. You have to tweak the amount of circles manually until the rectangle is filled, but all conditions should be met (you can replace the Pop 2D with an existing set of points). (16.2 KB)