It would be even better if it can be generated inside a curve, for example a hexagon (as shown) and optionally inside a square or triangle, but that does not matter.
The main concern is generating this in Grasshopper.
Might want to look at Parakeet plugin. Has a lot of default patterns that are easy to experiment with. Think it also comes with a lot of example files.