Packing spheres in volume of shape

take a look to Bazil nut effect, maybe you can extrapolate to 3d, this files from the kangaroo examples could be helpful too.
balloondemo.gh (28.3 KB)
floorcollide.gh (13.1 KB)