Unflatten and Match Tree

Hi Everyone,

I have two unflatten lists of 15 branches (from a single list). Each branches correspond to a level of multiple join curves packed together. To join them, i had to flatten them first.

When i am trying to unflatten them, i am having weird results. It seems that the curves are not packed by levels (some are but i have at list one closed curve from another branch) and i can’t understand why. I tried different solutions but still in the blur. I checked several times my data but still cannot put my finger on the problem.

My goal after that is to join those two lists and having my joined curves by level (as i have them before to split my data in two).

Thank you,

Rémy

SPHERES FLOWERS 4.gh (46.8 KB)

Anyone?

Thank you,

Rémy

Check the attachment if it’s what you want. IMO, you don’t have to use Unflatten Tree at every step. To me Shift Paths is more useful in this case…

SPHERES FLOWERS 4_re.gh (52.2 KB)

1 Like

Hi @HS_Kim

Thank you for your reply. I didn’t thought of your solution, it seems way more efficient.
How can you explain the use of Shift Path here? (Sorry, this is new for me).

As you can see on the pictures below, i wanted to have the top of my branches (closed curves) flat if their top where <0. That is why i dispatch my data in two parts. Your solution is perfectly optimized but i am losing this feature. Do you know how can i keep this in the loop?

Thank you for your help, once again :sun_with_face:

Best,

Rémy

Find the solution following your advices @HS_Kim
I understood the use of Shift Path.

Thank you once again,

Rémy

1 Like