Grasshopper

algorithmic modeling for Rhino

how can i simplify the following gh file and make it more parametric. I am fairly new at grasshopper.

Views: 2662

Attachments:

Replies to This Discussion

I know you're new, so I advise you to learn in depth about lists and branches to stop eating spaghetti :3

On the file:
Contour Curve -> polar array.
Dividing the curves and flip the branches thus obtain a first branch for all first points, another branch for every second points, another branch for all third....
Offset each branch one element for each level: The second branch offset one item, the third branch 2 items, three branch 4 items...
We again flip branches to get the points in the order you want.

Attachments:

thanks a lot, my concepts of list are pretty weak, since I am a beginner. This definitely clears a lot of my doubts and gives me clarity.

Whoa!  Spaghetti indeed!!  Have to give you a lot of credit, though, for getting the results you wanted.  You certainly have the aptitude for this stuff; keep at it.

Here are a pair of simple tools I use ALL THE TIME to decipher the mysteries of trees and lists.

I found myself coding these patterns over and over so created a cluster for each one:

  1. 'vList' applies a 0..1 slider to the length of the list to get each item, one by one.
  2. 'vTrE' is similar except it uses 'TStat' ('Tree Statistics') and 'Branch' to access each branch of a tree, one by one.

Combined, the two make it easy to examine the output of any component.  You can double click the clusters to see how they work or modify them to suite you.


Oh, and of course the 'Display | Selected Only Preview' button to show output for only the component(s) you have selected - like the 'vList' component.

Attachments:

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