Grasshopper

algorithmic modeling for Rhino

I would like to begin by thanking the creators of Hoopsnake for generating this great component. I am somewhat new to Grasshopper and most definitely new to Hoopsnake. 

 

I am trying to create a box that has spheres within it so I can create iterations of an object that kind of looks like swiss cheese with its many cavities.

 

I started by creating a surface using the surface divide component to create a series of points. From there I created an extrusion of the surface to act as the "bounding box" for all of the spheres that will move about inside of the box. 

 

What I want to do from there is to randomly select a point from the set of points created by the surface divide component. This point will then be moved at a random distance within the bounding box in the Z-axis. From there, the point act as a base plane for a sphere that has a random radius of some integer that is within an assigned domain.

 

The problem is finding out where Hoopsnake is included in this algorithm. I believe it should be because of all of the times "random" is used in this discussion. It would also be helpful in generating an infinite number of iterations. I've tried integrating Hoopsnake in different parts of this algorithm but it is clear I don't fully understand its use.

 

Any help in trying to determine where and how Hoopsnake should be used would be greatly appreciated. I will do my best to provide answers to any questions you might have. Thanks Grasshopper community!

Views: 945

Replies to This Discussion

Hi Steven, 

 

Thanks for your message. I believe though that if you want to generate a series of spheres at random heights using your grid you don't really need HoopSnake. If you simply generate as many random values as the points you have and use them as z-positions you're done. The rest is just creating the spheres(using the sphere component) and assigning another set of random values to the Radius of each of them. 

 

All this can be done using object lists / trees which is a fundamental concept in Grasshopper.

 

Cheers,

Yiannis.

Using hoopsnake would only make sense to bool the objects against each other (once you created them like Yiannis said, since gh might have problems creating a boolean with to many intersections. But for sure i´d first try to flatten them.

Phillip

p.s.: blobmesh

I'll give it a try. Thanks for the reply!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service