algorithmic modeling for Rhino
Hi, I have met a problem about data machting. Just like in the picture, what i want to do is that each point of "group a" connects all points of group1 and group2. However, the result is that the first point of "group a" connects all points of group1 and the rest connect all points fo group2.
This is a simple sample for my question. What i am doing in a project is about much more groups and points, thus i don't want to use explode tree.
Could someone help me?
Tags:
This should be very easy, but can you please attach the .gh file with the points internalised? To do that right-click on "group a" and click "internalise data" then do the same on "group1 and group2". Now the data is stored in the components and you can cut the wires that go higher up and you dont need to have the Rhino file as well - just the .gh file.
Its too tedious to recreate what you have in the screenshot to help with something so simple ;)
i thought it should have been easy, but it took me much time and i didn't solve it... hopefully it is really easy.
No problem, it usually takes me a bit of trial an error. As a rule of thumb if you want to connect a set of items with each member of another set than one set needs to be flattened and one needs to be grafted in a way that each member is in its own set.
So this is what you do here:
Than you can see that it still retains the grouping in group 1 and 2 in the indexes 0;0;0 , 0;0;1 , etc.. and 0;1;0 , 0;1;1 , 0;1;2 , etc. Then you can use Trim Tree to reduce them again into the 2 groups.
Took me a while to figure this stuff out too, but you get familiar with it after a while ;)
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by