Grasshopper

algorithmic modeling for Rhino

Hi All - 

I am fairly new to Grasshopper and I am stumped on the logic for dispatch by height or z-value.  I would like to be able to morph different geometries across a surface based on a height evaluation.  I am looking to make this surface have one type of morphed geometry up to a certain z-height, and then another geometry morphed above that height.  The code executes but the output is not what you would expect - any input is much appreciated!

Thanks!

Views: 1231

Attachments:

Replies to This Discussion

Hello Anne,

one basic reason for your definition not working is that you have 100 boxes but you check the Z value of 800 vertices. So the dispatch has 100 items on the L input and 800 on the P input.

Try something like this instead:

Hello,

Your definition need one more component. You need to select only on point of the twisted boxes to test their Z-value. You can do this with list item. Index = 0 to 3 no matter.

You don't need to flatten your list every time (could be dangerous to your CPU with big list) Graft your list of twisted boxes for matching with the z-value test.

I Hope you can do what you want

Ciao

Gogol9

Attachments:

Great - thanks you guys!! I appreciate the explanation and the different approaches - adding the list item worked great!

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