pyboxbuilder.box.types.pip_hinge.PrintInPlaceHingeBox

class pyboxbuilder.box.types.pip_hinge.PrintInPlaceHingeBox[source]

Bases: BoxTypeBase

Monolithic 180° flat print-in-place captive hinge box (FR-090).

build_body(spec: BoxSpec) → Bosl2Solid[source]

Return the monolithic print with body, lid, middle knuckle hinge, and front snap catch.

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

Return None since PRINT_IN_PLACE_HINGE is a monolithic 1-piece print.

interior(spec: BoxSpec) → Interior[source]

Return the usable interior volume of the base tray half.

interior_mask(spec: BoxSpec) → Bosl2Solid[source]

Return the base tray interior mask, excluding any front catch backing boss.

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

Return closed outer (W, L, H) for a print-in-place hinge box.