Grasshopper

algorithmic modeling for Rhino

Hello! I need help. I have two point containers. First have a structure:

{0;0}

{1;0}

{2;0}

{2;1}

{3;0}

Second:

{0}

{1}

{2}

{3}

I need build a line beetween point like this:

{0;0} - {0}

{1;0} - {1}

{2;0} - {2}

{2;1} - {2}

{3;0} - {3}

By default the line component assembels:

{0;0} - {0}

{1;0} - {1}

{2;0} - {2}

{2;1} - {3}

{3;0} - {3}

Help me please

Views: 704

Replies to This Discussion

what I would do in this situation is use [Shift Paths] = -1 on the First Set. Then pass it through a [List Length] to get the number of time you need to [Repeat] or [Duplicate] the Second Set. And then the Data Matching should be good.

Thank you. I have same solve by graph mapper component. I need result structure like oroginal structure.

assemble of line:

{0;0}

{1;0}

{2;0}

{2;1}

{3;0}

Do you know how make it? Thank you!

Simplify|Simplify|Graft

Thank you very much!

Tell, do you now how the DataTree's internals are organised? Is it literally a tree (i.e. the structure consisting of nodes, each of which has references to its children) or it's organized some other way? API of DataTree class makes me think that inside it's just a dictionary "path -> list of data" without any knowledge that, for example, paths [0,1] and [0,2] belong to one high-level subtree, but paths [0,1] and [1,0] - to different.

It is hierarchical

You can manipulate different Branch levels to obtain sets of data for instance if I [Split Tree] with the Mask {0;*} I will only get branches that start with {0; and not any {1;

Similarly if I [Shift Paths] then eveything below {0; will end up on {0} and everything below {1; will end up on {1}

Knowledge of whats below and above is a strange concept. In the same way that my house doesn't know that it is on the same street as my neighbours but the post man in the sorting office does because of my post code.

It's how you use and understand the "Address" system is what is important

Thanks! It helped me!

In tree sloth I developed the component "propagate ancestor" for exactly this type of situation:

Thanks! where can I get this component?

if you click on the above link it should bring you to the post!

this plugin have not component from image

Turned. Thanks!

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