pyboxbuilder.box.types.inset_hinge.InsetHingeBox

class pyboxbuilder.box.types.inset_hinge.InsetHingeBox[source]

Bases: BoxTypeBase

Print-in-place inset-hinge box based on MakeBoxAndLidWithInsetHinge (hinge_box.scad).

build_body(spec: BoxSpec) → Bosl2Solid[source]

Return the monolithic side-by-side print with inset hinge, rim, and latch tab.

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

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

interior(spec: BoxSpec) → Interior[source]

Return the usable interior volume of the base half clear of the inset hinge.

interior_mask(spec: BoxSpec) → Bosl2Solid[source]

Return the base half interior mask, excluding any outer-wall 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) accounting for the inset hinge width.