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/render-upright-watch.mjs
import fs from 'node:fs'
import {renderGLTFToPNGFromGLB} from 'poppygl'
const glb=fs.readFileSync('mechanical/upright-watch.glb')
const lookAt=[0,-5.4,-47.19159126281738]
for(const [name,offset] of [['front',[60,55,65]],['side',[85,0,5]],['back',[50,-65,45]]]){
const png=await renderGLTFToPNGFromGLB(glb,{width:1100,height:700,supersampling:1,
camPos:lookAt.map((x,i)=>x+offset[i]*(i===0?1:-1)),lookAt,up:'y-',backgroundColor:'#edf1f5',ambient:.7,cull:false})
fs.writeFileSync(`mechanical/upright-watch-${name}.png`,png)
console.log(`Rendered upright ${name}`)
}