Automatic hexagon generation