Kangaroo

THIS FORUM IS NO LONGER ACTIVE. PLEASE POST ANY NEW QUESTIONS OR DISCUSSION ON:

https://discourse.mcneel.com/c/grasshopper/kangaroo

The discussions here are preserved for reference, but new questions posted here are likely to go unanswered.

Kangaroo is a Live Physics engine for interactive simulation, optimization and form-finding directly within Grasshopper.

Sphere Packing

Hello all,

I am trying to use Kangaroo to do a bit of sphere packing, using different sizes of spheres related to the required program areas. I have seen some examples of 2d circle packing, and I've tried to translate this into 3d spheres, but I can't figure out how to set the desired sizes and prevent overlapping. Any advice?

Thanks,

Bill

  • up

    Marc Syp

    Hi Bill,

    I haven't taken a look at your files, but I can give you some guidance based on a system I built a couple years ago for this very purpose.  

    First you will want to create gravitational forces between the sphere centerpoints.  Then you generally want to create a separate force that consists of springs of a very high stiffness between centerpoints, with a length that represents the sum of the spheres' radii.  This will prevent collisions, although you will find that relaxing the stiffness will prevent the system from getting stuck in sub-optimal configurations.

    You can see a video of the system I built and some discussion on the topic here:

    https://vimeo.com/15563685

    Marc

    1
    • up