pyboxbuilder.box.features.cap_finger_metrics

pyboxbuilder.box.features.cap_finger_metrics(spec: BoxSpec) → CapFingerMetrics[source]

Size a cap box’s corner finger cutouts, or explain why it cannot have any.

Parameters:
spec: BoxSpec

Needs width, length, height; reads floor_thickness and optionally cap_finger_length, cap_finger_height and cap_finger_radius.

Returns:

The cutout geometry (FR-002i–FR-002m).

Raises:

ValueError – If the box cannot stack a lid, a 3mm skirt, both rolls and the foot (FR-002n) — the smallest cap box is lid + 3 + 4 + 2. A cap box built without the cutouts has no way to be opened, so this refuses rather than shrinking them.