pyboxbuilder.rounding.lid_rounding

pyboxbuilder.rounding.lid_rounding(spec: BoxSpec) → float[source]

Return the edge radius for a lid, capped so it keeps enough support.

Parameters:
spec: BoxSpec

Reads rounding (or derives the body default) and lid_thickness.

Returns:

The radius in mm — the body radius, but never more than half the lid’s thickness.