Grasshopper

algorithmic modeling for Rhino

How to distribute more than one geometry across a series of points.

Kind of new to grasshopper and have been playing around with some image sampler height maps.

I basically have this definition here that creates a stack of cubes with the height value driven by the RGB of the image. At the moment i only have a box assigned to the points, but would like to distribute say 2-5 of my own geometry components to the points randomly or with some kind of logic. Then maybe looking at applying some random rotation to particular components.

I think this would require creating a list of the 5 pieces of geometry and then going from there, but I have had no luck so far.

I have attached the working grasshopper file that just assigns boxes to the points generated from the image sampler.

Any help would be much appreciated.

Views: 1312

Attachments:

Replies to This Discussion

Hi.

You can divide color brightness value into the count whatever you want. and than apply different size of boxes.

Attachments:

Thanks I hadn't actually thought of creating a variation in size by color value, nor would I have had the skills to do it, but this is a real big help.

Thanks again !

Not sure how that RGB value gets interpreted as vector amplitude(?), but I deconstructed the Z vector, re-mapped its Z value from the source domain (the 'Bounds (Bnd)' of the list) to 0..1, multiplied that by the length of my list of shapes (Box, Cyl, Sph, Cone) and 'Round'ed to the 'Floor (F)' to use as 'Index (i)' for 'Item (List Item)'.  So each point gets a shape based on its length.

The shapes can be stacked, scaled and/or rotated, of course.

Attachments:

Here is a slightly different approach, no 'Orient' needed because the different shapes are replicated in place for each point, scaled by the Z value (except for 'Sphere').

Did a simpler variation on this question back in June:

http://www.grasshopper3d.com/forum/topics/how-to-randomize-shapes-o...

By the way, it's a VERY GOOD IDEA to reduce the grid count while exploring solutions for problems like these!  10 X 10 instead of 45 X 45, for example.  Hung Grasshopper/Rhino very badly several times today messing with this.

Attachments:

Replaced 'Center Box' with 'Domain Box', connected 'Mapped (R)' output of 'ReMap' as 'Radius (R)' input of 'Sphere (Sph)'.

Attachments:

Thanks so much for your work on these definitions Joseph, exactly what I needed, now to tinker further with your definition !

Absolute champion

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