Grasshopper

algorithmic modeling for Rhino

still new to the gh. and confuse about the tree ;sets .and as you can see from above i try to random reduce the data in the branches with the corresponding number, but it just create more branches and do the reduce multiple time .

Views: 480

Attachments:

Replies to This Discussion

Hello Itto:
This is a common mistake. The value you are putting in "L" is a tree. You can see that because the panel says "data with 7 branches". However the value that you are using for "R" is a list. Since both are not the same data structure grasshopper has to "guest" how to handle the data. And what it does is that it test everything in the list "R" with every item in the tree "L". 

The result you are expecting is a one to one comparison and that requires that the values that you are inputting in "R"  also to be a tree, so it will be able to compare trees with trees.

The solution to your problem is to convert or "graft" the list coming from the subtraction component. You can do that with a "graft tree" component, located in sets/trees/.

If you do not completely understand it yet the grasshopper primer has a great explanation of trees and lists.

Hope it helps

wow.... thanks it fix everything.

You're welcome

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service