Diagonal item weaving from multiple branches

Awww…

broken.

Fixed: 241115_diagonal_branch_weaving volker2.gh (42.6 KB)

1 Like

amazing it works perfectly for a single grid but i could also do multiple grids at once? tryed it a little but could not make it work. Generelly i think the tree item component is realy nice to solve this but i am wondering if the paths and indicides could be generate at bit easier :smiley:

i had a look into relativ items but could not create a matching path mask for this pattern - it migth also be an approach

1 Like

Maybe? The chokepoint is going to be flip matrix for you there, which you would have to replace with pathmapper since flip matrix only works with single depth differentiated tree branches.

I don’t know how Relative Item is going to help you here. What Relative Item does is take an element in a certain branch at a certain index in a tree, and finds another element through a relative offset. In branch 0 (first column) of the grid, there is no item to relative offset from to get squares that don’t belong on a diagonal in the first column.

1 Like

thanks a lot - i will try to make it work with multiple grids and deeper branches and leave the topic open for now maybe some one else comes with an other approach.

Thats was i manged to create with relatives items which looks like it goes in a rigth direction but i will continiue with your script.

241117_diagonal_branch_weaving.gh (21.2 KB)

I suppose you could attempt to solve the problem geometrically; by creating diagonal lines and searching for the cells whose centroids intersect with those lines. But I don’t know if running the computer through a bunch of intersection searches will be faster than culling the nulls from my working solution.

1 Like