Grasshopper

algorithmic modeling for Rhino

packing equally sized spheres within a volume/geometry

hi

i want to pack equally sized spheres withing the volume of a 3d hollow geometry.

the spheres are placed touching tangentially but not intersecting.

please help.

Views: 2268

Attachments:

Replies to This Discussion

Heyy
Thank k you for your reply.
I haven't tried it.
Will it let me keep the position of the spheres definite? They cannot be random.

Will it be just a mathematical problem?

The raidus of your sphere just need to be the half of the length of one edge of your equilateral triangle?

Yes. Radius = side of triangle/2

 You realize right that you cannot do this without falling to touch the enclosing surface except in a very few if any points? To generate a fill, first create a 3D packing larger than the enclosure and test for location inside or not to delete outliers.  If you use lots of tiny balls, it will well approximate the volume but big balls will not fit well unless you perfectly tweak your volume to match their unit size packing.

So, how to create a big array of balls? I'm on an iPhone, sorry, but a unit cell you could make by manually placing balls at the vertices of an arrangement of tetrahedra and octahedra, placed in a cube and cut with it:

After stacking these you'd join the surfaces.

Thank you so much.
I will try this out and let you know if it succeeded.

 Ran into this today, too, "voxelization":

https://www.youtube.com/watch?v=FP9k_WWcy0g&list=PLXekJiZsSipAk...

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service