pyboxbuilder.box.types.clamshell.ClamshellBox

class pyboxbuilder.box.types.clamshell.ClamshellBox[source]

Bases: BoxTypeBase

Bifold clamshell book box with a mid-height filament pin hinge (FR-088).

build_body(spec: BoxSpec) → Bosl2Solid[source]

Return the lower tray half with interleaved filament-hinge knuckles and front catch.

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

Return the upper tray half with interleaving filament-hinge knuckles and front catch.

interior(spec: BoxSpec) → Interior[source]

Return the usable interior volume of the base tray half.

interior_mask(spec: BoxSpec) → Bosl2Solid[source]

Return the lower tray interior, excluding the rear filament hinge intrusion.

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) for a bifold clamshell (base half holds inner_h).