DataTreesGH

Hello!

I need my hex Grid indices to look like the image below… any clue?

For each cell make its center point. Then make a vector from those points to the grid center point.
Deconstruct vectors, take the maximum from absolute X and absolute Y components.
With that number “d” and cell size “c” make:
Round(0.5+d/c)

hi! number ‘d’? whats that?

here you have the file model

hexPatternStr.gh (13.5 KB)

This is what i meant:


grid_manhattan_distance.gh (8.2 KB)

You attached a picture of a square grid, but your attached definition works with hexagon grid…
How you want to use it?

2 Likes

beautiful! it worked!

Thanks