pyboxbuilder.compartments.hex_grid.hex_grid_bounds

pyboxbuilder.compartments.hex_grid.hex_grid_bounds(spec: HexGridSpec) → tuple[float, float][source]

Compute the bounding (width, length) of a hex grid.

Parameters:
spec: HexGridSpec

The hex grid specification.

Returns:

(width, length) of the full grid footprint in mm.