How to reconstruct data tree diagonally?

Reconstruct data tree diagonally v2 added examples.gh (52.6 KB)

I have a data tree of anything, curves, points, even numbers or texts.
All branches are the same length.
I am trying to reconstruct it diagonally with native components.

The GH is my attempt. As you can see, this naive but intuitive method can only solve data tree of points.

Post Edited:

  1. Updated GH to v1. v1 includes examples of integers and curves.
  2. Updated GH to v2. Plugin removed.

But your file uses “Grid Structure” from a plugin… :sweat_smile:
I was unable to quickly fix it…


Try with series + shift list … maybe?

1 Like

Thank you! I fixed that with v2.

Very interesting problem, but unfortunately I have to go in a few minutes.
As you’ll see I have solved only half of the task… :smiley: Still it might give you some ideas
diagonal_sort.gh (7.9 KB)

Hi @Quan_Li , just out of curiosity, how many clusters do you have?
I see that you have them for everything and probably this code also becomes cluster. :grin:


Reconstruct data tree diagonally v2 added examples_v2.gh (43.3 KB)

7 Likes

Reconstruct data tree diagonally v3 Cluster.gh (38.8 KB)

Haha, how do you know that :sweat_smile:!

Genius!
This algorithm is really surprising, looks simple yet hard to understand!