Modify the Default Hexagonal Structure in Grasshopper

Hi Everyone,

I am new to grasshopper and I am using the Hexagonal component to create a hexagonal structure. I post an image here regarding the structure that I am getting in grasshopper and the target structure.

On the left side is the hexagonal structure that is created by default in grasshopper when using the HexGrid component. In target structure, on the right side, I want to fill the lower gaps by hexagons that I show by the arrow signs in the screenshot.

I also post the components I used in grasshopper. I know that the components that I used are trivial. I have tried to circumvent this problem through multiple ways but I wasn’t successful. So I will not post them here because they are useless. Is there a way I can add hexagons in the lower part while keeping the Extent X and Extent Y sliders? Your help is much appreciated.

Hi,

I think it’s done that way so that each column actually has exactly the amount specified in Extent Y.
You can cheat by adding 1 to the extent Y input and removing the first hexagon on even columns.

HexagonsPlusOne.gh (10.7 KB)

2 Likes

Hi @magicteddy,

Thanks a lot! That really helps. Could you please let me know why you inserted x+1 expression in Extent Y in the HexGrid component?

This adds an extra row of hexagons so that after deleting one on every other two column, the amount is set to 11 as a minimum.
This gives alternating columns of 11 and 12 hexagons. If you don’t use the expression you’ll end up with 10 or 11.

1 Like

Hi @magicteddy,

Thank you once again for you help and for your explanations. Much appreciated!