Creating a parametric grid pattern on GH

Hi, I’m trying to make a parametric grid on grasshopper with somewhat specific moments. I need to have the edges connected diagonally (the red lines) and the last row of the grid has to be cut so all the distances are equal (as shown). I attempted at a script to get the alternation of lines but they don’t fit the square perfectly. Does anyone have a better method?


230727_Dining_Pods_EM work_alternating.gh (50.0 KB)

worked great! Thanks

Code a bit messy but here’s one that creates a square that snaps to diagonals to that the spacing between them remains equal.

SNAPGRID.gh (15.4 KB)

1 Like