Grasshopper

algorithmic modeling for Rhino

Hi,

I should draw lines between 2 data trees of points which are:

treeA

{0;0} N=3

{0;1} N=3

treeB

{0;0;0} N=9

{0;0;1} N=9

{0;0;2} N=9

This way:

line between: item 0  {0;0} treeA and {0;0;0} treeB

line between: item 1  {0;0} treeA and {0;0;1} treeB

line between: item 2  {0;0} treeA and {0;0;2} treeB

line between: item 0  {0;1} treeA and {0;0;0} treeB

line between: item 1  {0;1} treeA and {0;0;1} treeB

line between: item 2  {0;1} treeA and {0;0;2} treeB

I solved the problem in a static way: I banged and grafted every branch of the treeA. Then I put two line components to draw two lines groups between the treeA branches and the treeB.

That's not what I'm looking for.

What I need is that if in the treeA the branches number changes then the algorithm draws lines automatically.

I attached the gha. file.

Thanks for your help.

Views: 1131

Attachments:

Replies to This Discussion

Hello GM,

How about this?

Hi Nikos,

thanks for your reply.

I already tried your solution, It works but all the data are mixed. I need each group of 9 lines in n separate branches.

You can re-partition the branches after the cross-reference. see attached file.

Attachments:

sorry, I made a mistake. it works! thank you very much!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service