42 std::vector<model::Via>
vias;
The board model (design doc 02 §3): every object TraceMaker reads from a .kicad_pcb,...
std::int32_t NetId
0 = no net
StitchResult stitch_vias(const model::Board &board, const model::DesignRules &rules, const StitchOptions &opt)
board holds the routed copper (the run's new tracks and vias appended).
std::int64_t Coord
Engine coordinate: signed 64-bit nanometres.
Design rules as KiCad defines them (design doc 08 §3–4): board minimums and net classes from the ....
Return-path stitching: every via of signal wants a via (or plated through-hole pad) of plane within d...
std::string source
"option" or the component rule (e.g. "USB2-09 J1")
long work_limit
Work budget (rule 5): sites examined plus exact checks. When it runs out no further site is tried.
std::vector< ReturnNet > returns
bool planes
plane stitching on a grid
int sites
grid sites inside overlapping fills
bool discarded
everything withdrawn: the refill with the vias left another net's zone in more pieces
int site_served
of them: already tied by a via or plated pad of the net within half the pitch
std::vector< std::uint8_t > return_path
per via: 1 = placed for a signal via, 0 = grid
int site_blocked
of them: refused by the exact check
std::vector< std::string > warnings
int dropped
vias placed and then removed because the second refill did not join them on two layers
std::vector< model::Via > vias
the vias to add, plane stitches first; all marked free
std::vector< StitchReturn > returns
one row per StitchOptions::returns entry
long checks
the pass's work
int stitched_before
of them: with a plane via or plated pad within the distance before the pass
int stitched_after
... and after it
int signal_vias
vias of the signal net on the board (old and new)