Grasshopper

algorithmic modeling for Rhino

I have two lists of numbers and I would like to draw vectors from a point in one list to the corresponding point in the other list. It seems simple enough but irrespective of any number of points I feed to the vector component, it results in only one vector.

I am assuming that just as the line component, the vector component will also result into multiple vectors but am I mistaken? Is there another way to get multiple vectors simultaneously? I have tried sprouting the lists but that hasnt helped.

Thank you all in anticipation.

S

Views: 508

Replies to This Discussion

Hi,
for that you need to work with tree components... Use the graft tree component in the two list and then the line or vector component. If that doesnt work (different tree path), before the graft tree put a flatten tree and then the graft tree.
When you use the graft tree, every point is on a different branch, that have to match the branch in the other list. The line or vector component will create a line or vector for every branch structure (in your original case, you have only one branch).
Hi Sameer, in some cases you can directly use the list as it is (see one example attached), in others you need to graft trees. If you still have problems, send a short description and your file.
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