hexa divide problem v0.gh (112.0 KB)
R8, No plugin.
I like to subdivide a hexagon into 3 quads using the sequences {center,0,1,2}, {center,2,3,4}, {center,4,5,0}.
It is very easy to handle a single hexagon, but when there is more than one, there arises a tricky data tree issue I cannot solve.
Every tree branch holds the hexagon’s six points, and I want to split each branch into 3 sub-branches with the specified subset of points.
I know I can generate the final shape using other methods, but I really want to work out this logic, as it has been troubling me for a long time. Thank you!
New edit:
So, my goal is like
{0}[0,1,2,3,4,5],
{1}[0,1,2,3,4,5]
to
{0;0}[center,0,1,2]
{0;1}[center,2,3,4]
{0;2}[center,5,1,2],
{1;0}[center,0,1,2]
{1;1}[center,2,3,4]
{1;2}[center,5,1,2]

















