app
Fusion - the Fusion 360 Bridge
Public Made by Adomby adom
Drive Autodesk Fusion 360 from the cloud via Adom Bridge: component libraries, IPC package generation, board layout, exports (STEP/Gerbers/BOM/CPL), fast APS cloud search, and parametric modeling.
master
John Lauer
Preserve BQ independent routing, narration and native copper-retention evidence
a4b7711
1mo ago
"""Discard a bounded subset of candidate routes, preserving all reference geometry."""
import json
from shapely.geometry import Point,LineString
from geometry import Geometry,ROOT
m=Geometry();r=json.loads((ROOT/'repair-02/candidate-plan.json').read_text());keep=[];removed=[]
for q in r['routes']:
hit=any(p['layer']==1 and any(LineString(p['points']).distance(Point(m.pads[n]['at']))<1.0 for n in ['IC1.10','IC1.12']) for p in q['parts'])
(removed if hit else keep).append(q)
out=ROOT/'ripup-01';out.mkdir(exist_ok=False);(out/'candidate-plan.json').write_text(json.dumps({'routes':keep},indent=2));(out/'removed.json').write_text(json.dumps(removed,indent=2));print('removed',len(removed),sorted({q['net'] for q in removed}))