Created by: DolphinDream
Based on the Hexagonal grid brainstorming I borrowed @zeffii’s code as a starting point to implement a hexa grid node. For the time being I added this as a generator and made it an “alpha” node in the search menu. The node generates vertices in a staggered pattern suitable to create hexagonal grid patterns (e.g. in combination with a hexagon / 6-point circle generated by the circle node). The node has a layout type feature (inspired by this site) that allows the generation of the grid points within one of four layout types: RECTANGULAR (zeffii’s script code example) as well as TRIANGULAR, DIAMOND and HEXAGON layout. The node inputs set vary based on the layout type: a Nx, Ny, Radius inputs for the rectangular layout and Level, Radius for the other layouts. I also added a centering option to center the grid around the origin. The node is vectorized.
See the attached blend file used in conjunction with the hexaGrid node to generate the above screenshots.