imrishabh18/corne-keyboard

The code defines and renders two surface-mount chip components with SMT pads, silkscreen outlines, and 3D CAD models (OBJ and STEP) for PCB assembly.

Version
2.0.21
License
unset
Stars
1

scripts/inspect-ground-paths.ts

import {AutoroutingPipelineSolver9_PreloadedTraceGraph as Solver} from '@tscircuit/capacity-autorouter'
import fs from 'node:fs'
const s:any=new Solver(JSON.parse(fs.readFileSync('dist/right-patched-signals-first-debug/phase-1.input.simple-route.json','utf8')))
while(s.getCurrentPhase()!=='portPointPathingSolver'&&!s.failed)s.step()
console.log('connections',s.srjWithPointPairs.connections.length)
console.log(JSON.stringify([39,43].map(i=>s.srjWithPointPairs.connections[i]),null,2))
fs.writeFileSync('../right-ground-pointpairs.json',JSON.stringify(s.srjWithPointPairs.connections,null,2))