Packing assorted prescribed radii circles in a closed curve

Hello, I’ve done in this in the past based off of this script (I believe) -


The idea is to pack all of the circles inside a closed curve (say a kidney bean shape) and move around obstructions inside of the curve as well? Like plants around rocks inside Japanese garden beds?

I understand this is old news but hoping to resurrect some of these scripts.