Kangaroo is pretty good at stacking a bunch of spheres into a closed region. There’s a lot of iteration involved so it’s unlikely you can do it in vanilla GH.
Here’s some stuff I did with Kangaroo a while ago:
The usual drill. Capsules stacked with Kangaroo 2, image rendered with Cycles. Had to manually delete a bunch of capsules that had their end-points on opposite sides of the glass. To make @nathanletwory happy, the capsules are all block instances, baked into Rhino using a small C# script component.
Toothpicks stacked using Kangaroo, scratches made using ShutLining.
Rendered viewport:
[image]
Just a test to see how quickly noise is reduced over time in Cycles.
Final result at 1000 samples:
Two details at various sampling levels:
[image]
[image]
The good news is that there’s really little point in sampling above 300. The bad news is that the noise seems to go away pretty slow as well. No new insights of course, but always nice to have some actual examples.
ps. model made with Kangaroo, equi-sized sphere stacking under gravity constrained within the bigger sphere.
It’s been a while though and I no longer have those files.