Cross reference points within a tree

Hi
Challenge:
There is a tree with multiple branches, all containing coordinates.

  • Branches {1;0} and {1;1} belong together.
  • Branches {2;0} and {2;1} belong together.

The thing is that I would like to make a ‘grid’ of points using the points in {1;0} + {1;1}
And also make a ‘grid’ of points using the points in {2;0} + {2;1} in a generic way.

2020-04-13 Cross reference points within a tree.gh (5.7 KB)

So something with cross linking the points in these branches, but I cant figure it out.
See below the output points I am aiming for.
The order of the points is not important, as long as they make the grid.

Any suggestions? :slight_smile:
Thank you in advance

I’d use metahopper wrap and unwrap to do this in a flexible way. These components let you turn whole lists into single items:

Your image also suggests that the values in the {?;0} lists should also be included in the final output, in which case you’d want to do something like this:

Native Version!


Best,
Mr.A
Cross reference points within a tree_V1.gh (16.4 KB)

1 Like

Thank you both :slight_smile:.

Its works after some miner adjustments. :+1: :+1: