pyboxbuilder.box.types.slipover.SlipoverBox

class pyboxbuilder.box.types.slipover.SlipoverBox[source]

Bases: BoxTypeBase

Slipover lid box type.

build_body(spec: BoxSpec) → Bosl2Solid[source]

Return the tray, set in all round so the sleeve finishes flush.

The declared size is the outside of the closed box, so the body is inset by a wall thickness and stops a lid thickness short — the sleeve occupies the difference. A foot keeps its full footprint at the very bottom for the sleeve to seat against.

build_lid(spec: BoxSpec, decoration: object = None) → Bosl2Solid[source]

Return a sleeve that slips down over the body, stopping at the foot.

interior(spec: BoxSpec) → Interior[source]

Return the frame the box’s contents may occupy inside the inset body.

outer_size_for_interior(spec: BoxSpec | UnresolvedBoxSpec, inner_w: float, inner_l: float, inner_h: float) → tuple[float, float, float][source]

Return outer (W, L, H) required to enclose (inner_w, inner_l, inner_h).