over 4 years ago by yoohooos
What is the purpose of flatten tree? I've tried connecting the 2 nurb curves to loft and it looks the same to me. Could you please tell me what does flatten tree do in general and in this example? Without it, what would happen?
José Luis Pérez about 3 years ago
Hi Yoohooos.
We have to tell GH how we want data be managed, In order to work correctly.
In this case, both inputs has to be in same branches to do a correct loft (both need to be flatten, with no groups), thus GH will identify those inputs and work with them 1 to 1.
I guess Judyta add a Flatten component in order to be on the safe side and remember us just no branches are needed in that case (even if inputs are already flatten).
I attach a variation where a additional flatten component will be necessary.
For diving deeper into branch structure logic inside GH, there is another Think parametric course on this topic:
https://thinkparametric.com/courses/grasshopper-102-data-lists-and-tree-structures
Cheers