Hi everyone!
I’m trying to build a system that would resemble a binary tree with polylines. I want to have control over the number of levels (how many times the tree branches off). To build branches I decided to use Polyline component - with well-defined nodes I can use a slider to see a point on a curve in proportion with respect to parameter T. I want it to be fully automated - no manual adjustments as a number of levels changes.
I managed to define the data tree where every branch contains every point of the corresponding level. On top of this, I got a tree, where branches store the indices defining each polyline (an index of an index maps to the level (branch) where the nodes belong). Now I want to build an intermediary method that will allow me to map and collect the vertices to build polylines.
Unfortunately, I’m completely stuck with extracting the points from another tree by means of predefined indices. I believe that my problem is about the structure of the data and how the trees interact with each other. The different shapes of data trees are problematic as well.
Does anyone of you know any tricks/components that make life easier in such case or what things I should do to avoid problems?
Help.gh (20.0 KB)

