Grasshopper

algorithmic modeling for Rhino

Need urgent help in Grasshopper sphere model

Hey everyone!

  • I want to make sphere cutouts on a solid box.(as Shown below)

  • Radius of distributed sphere must be in random manner (range of 1mm to 4mm)
  • Two adjacent sphere should not intersect each other but randomly arranged.

Can anyone help?

Thanks in advance.

Views: 1074

Replies to This Discussion

I think the following steps will work:

  1. Populate Box with sufficient (but not too many) points. You can also randomly populate the volume if you want a more variable distribution.
  2. Use the Cull Duplicates component in the Point panel to remove all points that are closer than -say- 2 together.
  3. Use Proximity 3D with a group size = 1 to find the nearest neighbour for each point. Because of step (2) the nearest neighbour should never be closer than 2 units.
  4. Process this nearest neighbour distance and limit it to the 1mm to 4mm range. You can also choose to randomly scale down certain spheres if you want more volume left over.
  5. Perform a boolean difference.

I hope step 5 works, Rhino has some issues with complex solid boolean operations. Also note the spheres on the inside of the box will not boolean. Shapes need to touch in order to be cut.

Hi David 

I want to populate spheres of different size and to cut all the spheres out of box.

Cutting spheres inside the box is not possible?

Thanks in advance

Cutting spheres inside the box is not possible?

No. Rhino does not support BReps with disjoint pieces. You could do it with meshes, but I'll be the last person to advice you to try your luck with the mesh boolean intersectors.

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