Hello, I am a metal sculptor and have been using rhino for many years to design and layout my sculpture projects. Recently I started playing with Grasshopper to help develop new concepts. I have caught on to the basics of grasshopper, but am a long way off from fully understanding it. I am trying to find a script/algorithm to pack the surface of a sphere with objects, like circle packing. I found this script on the forum and have used it with moderate success, but I’ll admit that I am fairly naïve when it comes to understanding how some of the individual commands in the script work. Things seem to go a bit wonky when I try to turn the hemisphere into a sphere. I think I can still get the results I want by mirroring an acceptable hemisphere model if I have to though.
I have 3 questions:
-
Is there a way to manipulate this script to make a spherical surface work as opposed to a hemisphere? When I try to bypass the “SplitBrep” at the beginning I get a sphere as the surface, but the “Solver” towards the end stops working.
-
Through the use of the sliders it looks like you can control the “Min” and “Max” radii of the circles being packed. It there a way to define say 4-6 set radii and the algorithm uses those 4-6 sizes to pack the surface as opposed to what seems like infinite possibilities between the min and max?
-
Finally, can one define a flat, closed curve or surface as the “circles” and use those to pack the surface of the sphere or hemisphere? Say hexagons, stars, or maybe even a leaf shape?
I’ve attached the GH file. It was downloaded off of this forum and was originally labeled “Circles_gravity_boundary.GH”
Original source of GH file