kicad2ems.emsdev.numerics.runs

Straight runs of trace on copper: geo.mesh_polygons' structured grid
(structured=) takes them from find_runs.
class kicad2ems.emsdev.numerics.runs.Run(k, c0, t, a, x0, x1)[source]
A straight run of trace on layer k: centre line from c0 along unit t,
half-width a, from x0 to x1 (m).
kicad2ems.emsdev.numerics.runs.find_runs(geoms, h_of, signal=None, w_max=0.002, min_len=3.0, margin=1.0, tol=1e-09)[source]
Straight runs of trace: pairs of antiparallel outline segments facing
each other across copper, at most w_max apart and overlapping by at least
min_len x max(width, h); their overlap, less `margin` x max(width, h) at
each end. geoms: {layer: (Multi)Polygon} (m); h_of: {layer: column length};
signal: only runs on it.