pyboxbuilder.box.features.filament_hinge

pyboxbuilder.box.features.filament_hinge(spec: BoxSpec, filament_diameter: float = 1.75, knuckles: int = 5, lid_thickness: float | None = None) → Closure[source]

Interleaved knuckles along the back edge, bored for a filament pin.

The “hinge” is a length of filament threaded through the knuckles after printing, so the two halves stay separate parts. Both sets share one pin axis and alternate along it, with a print gap between neighbours.

Parameters:
spec: BoxSpec

Box dimensions.

filament_diameter: float = 1.75

Pin stock diameter; the bore is a little wider.

knuckles: int = 5

Total knuckles across the hinge, alternating body and lid.

lid_thickness: float | None = None

Thickness of the leaf the lid’s knuckles web into; defaults to the spec’s.