abse/smartwatch-flex-top-only

Three-panel flex smartwatch with two parallel R3.9 bends, all components flat-top, low-profile JST connector harnesses, split heartbeat optical windows and screw-retained PCB mounting. Modeled 39 × 50.5 × 14.5mm prototype; 100% routing, zero native DRC and shorts. Hardware qualification pending.

Version
0.2.20
License
unset
Stars
0

scripts/restore-inline-models.py

"""Restore the exact standalone GLBs embedded by this source package."""
from pathlib import Path
import base64
root=Path(__file__).resolve().parent.parent
for p in (root/'mechanical').glob('*.ts'):
 text=p.read_text()
 if text.startswith('export default "data:model/gltf-binary;base64,'):
  data=base64.b64decode(text.split('base64,')[1].split('"')[0]);p.with_suffix('.glb').write_bytes(data)
print('Restored standalone inline GLB models without altering source geometry.')