pyboxbuilder.compartments.carve.tray_rounding¶
- pyboxbuilder.compartments.carve.tray_rounding(placement: CompartmentPlacement, builder: object) float[source]¶
Return the radius for a tray well’s vertical corners and its floor.
Rounding is opt-in: a well is square unless its builder says it holds loose pieces. That is the right default because most wells are shaped by what they hold — a card slot needs a flat floor and square corners to sit in, a silhouette is reproduced as authored (FR-045), an element pack places its own members — and softening any of those changes a fit rather than improving it. A tray full of tokens is the case that benefits, and it says so.
- Parameters:¶
- placement: CompartmentPlacement¶
The well being carved.
- builder: object¶
Its
CompartmentBuilder, if it has one.None(a bare placement) is square, like any well that has not opted in.
- Returns:¶
The radius in mm —
depth × 2/3, capped so it can neither swallow the well’s footprint nor exceed its depth.