pyboxbuilder.compartments

Compartment layout, sizing and element packing.

Submodules

builder

Compartment builder dataclass.

carve

Turn a laid-out set of compartments into the solid that gets cut from a body.

element

Compartment elements — individual game components nested inside a compartment.

finger_cuts

The finger cuts themselves — three shapes, and the one thing that chooses.

finger_hole

Finger cut geometry — the name the rest of the library imports.

finger_outline

The outline of a finger cut — its shape in two dimensions.

finger_sweep

Turning a cut's outline into a solid that crosses a wall.

hex_grid

Hex-grid compartment layout — hexagonal tile cutouts with push block and finger hole.

labels

Labeled compartment floors — mode-aware label generation.

layout

Compartment auto-layout — 2D shelf + obstacle-aware MaxRects bin packing.

sizing

Compartment row-width distribution (T052a / FR-004).