pyboxbuilder.box.types.cap_path.CapPathBox

class pyboxbuilder.box.types.cap_path.CapPathBox[source]

Bases: BoxTypeBase

Cap-path lid box type.

build_body(spec: BoxSpec) → Bosl2Solid[source]

Return a hollow tray on a polygon footprint, sized for a cap to fit over.

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

Return a cap whose skirt follows the same outline as the body.

interior(spec: BoxSpec) → Interior[source]

Return the frame the box’s contents may occupy.