- clearances checked with exact shapes (round via) against pads, tracks,
vias, copper drawings, other zones' poured copper and keepouts;
Rectangular no longer uses square box tests
- Outline follows the poured copper edge, vias on the grid
- same-net pads: only thermal relief gap and hole-to-hole spacing
- optional zone refill before placing vias
- snap grid option (disables Grid Origin choice)
- via group mode: per net, per net and pattern, new group per run
- optional markers of skipped vias on User.Drawings with reason letter
- option to keep vias out of footprint references
- warning when "Only under selected Zone" has no zone of the net selected
- dialog: options in two columns, narrower window
- numeric KiCad version check (string compare broke on 10.x)
- GetBoardPolygonOutlines, PCB_VIA.GetWidth, PAD.GetEffectivePolygon: KiCad 10 API
- default grid 2.5 mm
- dialog values saved to ViaStitching.json in KiCad user settings dir
- net list: only nets with a zone, GND first and preselected
- add metadata.json
- README: KiCad 10
The original ConcentricFillVias() used BooleanIntersection across all
copper layers. On multi-layer boards where the target net (e.g. GND)
only exists on a subset of layers (e.g. inner GNDPWR plane), the
intersection with empty layers produced an empty polygon set, causing
'No areas to fill'.
Additionally, CORNER_STRATEGY_CHAMFER_ALL_CORNERS applied to complex
zone outlines (boards with irregular shapes / many vertices) could
produce empty or degenerate polygons after the negative Inflate.
Fixes:
- Process each GND zone independently instead of merging across layers
- Use CORNER_STRATEGY_ALLOW_ACUTE_CORNERS to preserve complex polygon
topology during the shrink step
- Manually copy zone.Outline() point-by-point (KiCad >= 7) to avoid
SWIG aliasing issues with the returned SHAPE_POLY_SET pointer
- Per-zone via list: vias placed on one zone no longer block placement
on other zones' perimeters
- Add debug wxPrint messages to help diagnose future issues
Tested on a 4-layer board (F_Cu / GNDPWR / BATT / B_Cu).
Know issues
- Unable to delete VIA (since The old method - used in 5.1 - don't
work anymore)
- Via are invisible after plugin run. Need to save and reopen file to
see them