pyboxbuilder.rounding.mating_rounding

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

Return the radius for surfaces where a partial lid grips the body.

Both halves of the grip use this same value, so the lid’s inner corners nest over the body’s band corners instead of meeting them at a gap.

Parameters:
spec: BoxSpec

Reads inner_rounding for an explicit value, else derives it from the body radius.

Returns:

The radius in mm; 0 leaves the mating corners square.