Data tree customed

Hi Everyone,

I have n numbers of concentric spheres and i am trying to separate them by pairs within a new tree list to have S0 & S1 together (S for sphere), S1 & S2, S2 & S3… S(n-1) & S(n)

The idea is to cull each duo of sphere at different height.

Does someone has an idea how to create this tree path?

Thank you,

Rémy



SPHERES FLOWERS.gh (16 KB)

Have a look here:

1 Like

Hi @Amir_Touhidi

Thank you for the tip. I already tried to partition the list. Only problem is that i have repetitions like:

{1}+{2} -> {1}
{2}+{3} -> {2}
{3}+{4} -> {3}
{4}+{5} -> {4}

Don’t know how to deal with this…

Best,

Rémy

Sorry, misread. This should do it, although there might just be a more elegant way :wink:

SPHERES FLOWERS_re.gh (8.4 KB)

1 Like

Thank you!

or like that

2 Likes