Building branches from flattened data tree

Please see the picture above.
I have 1 set of points, this data is flattened into one branch ({0}[i]). Also, I have a list of integers which represent the branch indices I want to create.
I want to unflatten the tree containing the points into a tree with the points where each point is put into the branch with the integer from the list.
input:
{0} {0}
a 0
b 0
c 1
d 1

desired result:
{0}
a
b
{1}
c
d


The end result would be that the point cloud can be separated into individual airfoil ribs.

Another solution could be to separate the tree every 245 points (every rib has 245 points).

Cords.txt (1.2 MB)
Above you will find the point coordinate data.

Any help would be greatly appreciated :slight_smile:
Cheers guys!

Elefront has a Create Tree component which does exactly that