pyboxbuilder.compartments.hex_grid.HexGridSpec

class pyboxbuilder.compartments.hex_grid.HexGridSpec(rows: int, cols: int, tile_width: float, height: float, spacing: float = 0.0, push_block_height: float = 0.0, push_block_width: float = 15.0, finger_hole_diameter: float = 0.0)[source]

Bases: object

Configuration for a hex-grid compartment (FR-040).

property apothem : float

The hex tile’s apothem — half its flat-to-flat width.

property circumradius : float

Hex circumradius derived from the apothem (FR-040).

cols : int

Number of columns of hex cells.

finger_hole_diameter : float = 0.0

Diameter of the floor finger hole; 0 = no finger hole (FR-042).

height : float

Depth of the hex cell cutouts (mm).

push_block_height : float = 0.0

Height of the raised central pillar; 0 = flat floor (FR-041).

push_block_width : float = 15.0

Width of the raised pillar (apothem-to-apothem, mm).

rows : int

Number of rows of hex cells.

spacing : float = 0.0

Gap between adjacent hex cells (mm).

tile_width : float

Apothem-to-apothem width of each hex tile (mm).