Hi everyone,

I have an original 4 groups of surfaces, and each group has been divided into two sets(The first two levels from the bottom as the first set, and the upper levels as the second set) each set of surfaces has been divided according to specific patterns and sizes.

After dividing the two sets, I need to merge them again into one list to perform extra operations on them. But due to dividing each set of surfaces separately using different patterns, the merged two sets’ list order for each group has ended up different from the original order, which is structured as follows: Starts with the first level, 4 edges, then next it moves to the upper level…etc.

Original Order:

{0;0}

{0;1}

{0;2}

{0;3}

{0;4}

{1;0}

{1;1}

…

When grafted:

{0;0;0}

{0;0;1}

{0;0;2}

{0;0;3}

{0;1;0}

{0;1;1}

…

The resulting merged list follows a different pattern like the following: First set, first-level edge, next level belongs to the same edge, next side…etc. Then it moves to the second set, repeating the same sequence.

Merged Order:

{0;0;0;0}

{0;0;0;1}

{0;0;1;0}

{0;0;1;1}

{0;0;2;0}

{0;0;2;1}

{0;0;3;0}

{0;0;3;1}

{0;1;0;0}

{0;1;0;1}

{0;1;1;0}

{0;1;1;1}

I am looking for a way to rearrange the final merged list for all groups to align with the original order: starting with the first level, followed by the four edges, then progressing to the upper levels, and so on.

I’m curious if anyone has a solution for this. I did attempt to solve it using the path mapper and unflatten components, but I couldn’t quite achieve the desired outcome.

I hope I have clarified the problem and is not that complicated.

Please refer to the attached GH file to find the related lists.

Thank you in advance for any assistance.

RE-ORDER LIST.gh (246.7 KB)