pyboxbuilder.lid.pattern.default_spacing

pyboxbuilder.lid.pattern.default_spacing(width: float, length: float) → float[source]

Return the cell size a pattern uses when the caller names none.

Derived from the lid rather than fixed, so the same pattern reads the same on a 40mm token lid and a 200mm card lid (FR-000).

Parameters:
width: float

Lid width in mm.

length: float

Lid length in mm.

Returns:

The spacing in mm — an eighth of the shorter side, never below 5mm.