Grasshopper

algorithmic modeling for Rhino

hi all
I have a question, I've been trying to do a weave with the branches of two trees, ie the two trees has 7 branches and want toconvert a single tree of 14 branches, but inserting the branch 1 of the first tree to the branch 1 ofthe second, then the branch 2 of the first tree to the branch 2 ofthe second,and so on ...
 

good if someone thinks something I appreciate in advance ...

Thanks for your interest

 

 

 

hola a todos

tengo una pregunta, he estado tratando de hacer un weave con las ramas de dos arboles, es decir, los dos arboles tienen 7 ramas y los quiero convertir en un solo arbol de 14 ramas, pero intercalando la rama 1 del primer arbol con la rama 1 del segundo, luego la rama 2 del primer arbol con la rama 2 del segundo, y asi sucesivamente...bueno si a alguien se le ocurre algo se lo agradezco de antemano...
gracias por su interes

 

Views: 4732

Replies to This Discussion

Do they have the same path structure. If so you can use the merge component and then graft the results.

Every thing in Tree A will be on the ...;0 branches and everything in Tree B will be on the ...;1 branches

hello Danny 

thanks a lot for your help.

i try to use your solution whit merge but it don´t work for my problem. i attach the definition and one image to show you the real problem.

 

Attachments:

My method is to use 'path mapper'. If 2 trees have different structures, e.g. one is like {0;1};another like {0;0;1} then just simply use 'merge'. However if same structures, you have to differentiate them via 'path mapper', for instance {A;B} (i) to {A;B;0} (i) then 'merge' them.

Your different paths theory is flawed. The Merge Component will not weave like you suggest as it will look at the data paths to get their placement in the new tree. See Below.

 However, your path mapper theory will work because it is putting a zero after the significant branch level so weaving will happen in the Merge Component.

Danny, you are right. Only under second condition it will work. so the different structures sometimes still need to be sorted out into condition 2.

 

Thanks for reminder. You are absolutely master of data processing.

hey guys thanks a lot for your help 

i already fix my problem using the commets of both of you, Danny i undestand now becouse my first merge don´t work, the pahts are the same and the component merge both in only one branche.

the image show my solution 

thanks guys again

 

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