make_hexagonal_grid

hcipy.field.make_hexagonal_grid(circum_diameter, n_rings, pointy_top=False, center=None)

Make a regular hexagonal grid.

Parameters
circum_diameterscalar

The circum diameter of the hexagons in the grid.

n_ringsinteger

The number of rings in the grid.

pointy_topboolean

If the hexagons contained in the grid.

centerndarray

The center of the grid in cartesian coordinates.

Returns
Grid

A CartesianGrid with UnstructuredCoords, indicating the center of the hexagons.