Hinges¶
⚙️ Spec sheet → — visual schematic and metrics measured from a real rendered STL.
Pure-Python port of the hinges in BOSL2’s hinges.scad: a print-in-place
living_hinge_mask() (differenced from a plate to make a folding “live”
hinge), a functional interlocking knuckle_hinge() leaf (with
knuckle_hinge_pair() for both leaves meshed around one pin, at any fold
angle), and simple snap_lock() / snap_socket()
connectors.
.. autoclass:: bosl2.hinges.Hinges
- members:
Examples¶
These mirror the examples in BOSL2’s hinges.scad, rendered live through PythonSCAD.
Examples that rely on BOSL2’s attachment/anchor system, or on features not in this port, are omitted.
knuckle_hinge
A 5-knuckle hinge leaf:
Hinges.knuckle_hinge(length=35, segs=5).show()
knuckle_hinge_pair
A meshed hinge pair:
Hinges.knuckle_hinge_pair(length=40, segs=5).show()
living_hinge_mask
A living-hinge groove mask:
Hinges.living_hinge_mask(length=100, thick=3, foldangle=60).show()
snap_lock
A snap lock:
Hinges.snap_lock(thick=3, foldangle=60).show()
snap_socket
A snap socket:
Hinges.snap_socket(thick=3, foldangle=60).show()