there have been multiple examples posted in the past, either with kangeroo, or external plugns such as Javid | Food4Rhino or Nautilus | Food4Rhino. so start the search and you’ll find what your looking for, such as Image-based Circle Packing within a polygonal limit - Grasshopper / Kangaroo - McNeel Forum or Hex grid with adaptive density - Grasshopper / Kangaroo - McNeel Forum