pyboxbuilder.box.types.cap.CapBox

class pyboxbuilder.box.types.cap.CapBox[source]

Bases: BoxTypeBase

Cap (friction-fit) lid box type.

build_body(spec: BoxSpec) → Bosl2Solid[source]

Return the tray, stepped in at the top so the cap’s skirt finishes flush.

The body stops short of the declared height and its top band is set in by the lid’s wall thickness: the declared size is the outside of the closed box, which is the size the packer reserved for it.

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

Return a cap: a top plate with a skirt that grips the body’s stepped-in band.

interior(spec: BoxSpec) → Interior[source]

Return the frame the box’s contents may occupy.