Grasshopper

algorithmic modeling for Rhino

Just did a grasshopper script to produce this, my first sample file:

The good and the bad of it is that it's done almost entirely in C# so no hoopsnake required and it's pretty quick.  It includes one C# component which takes a level and produces a bunch of strings which indicate which direction the individual spheres take (and, by default, doesn't produce any strings for hidden spheres).  The strings are piped into another component which uses them to produce a list of positions, a list of scales and a list of levels.  Here I used the levels to go through a gradient and pipe into a third C# component which colors all the vertex colors in a mesh.  You have to use a vertex mesh material to see the result in the render.

Main point to note is that the C# stuff doesn't do any of the geometry so you're free to replace all these spheres with some other geometry which is potentially level based.  In fact, I used the level to use lower resolution spheres the smaller they get.  You could also use the level to do all sorts of crazy modifications.  This example is about as tame as it could get, but you could do some nutty things.

If you're wondering why I split the C# stuff into two components, you're right - I could have done it in one.  I just thought that perhaps someone might be able to use the "path" of each sphere to act on it in some way.  Plus, it made it easier to debug.

So maybe somebody will find this useful or at least a little bit fun.

Views: 1268

Attachments:

Replies to This Discussion

This is really very interesting. But the script is showing nothing in my rhino screen.... :s.. I would definitely love to try the fun with the script.... would be useful for my design too.

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