KiCAD MCP Bot
a5a542b1e9
feat: Implement wire graph analysis for net connectivity (Phase 2)
Major Feature: Wire Graph Analysis
- Rewrote get_net_connections() with geometric wire tracing
- Added points_coincide() helper for coordinate matching
- Implemented multi-step connectivity algorithm:
1. Find all labels with target net name
2. Trace wires connected to label positions
3. Find component pins at wire endpoints using PinLocator
4. Return accurate component/pin connections
Technical Implementation:
- Tolerance-based point matching (0.5mm for grid alignment)
- Wire polyline support (traces multi-segment paths)
- Accurate pin location matching with rotation support
- Fallback proximity matching when schematic_path unavailable
Testing Results: ✅ 100% PASSING
- VCC: 2 connections (R1_/1, D1_/1) ✓
- GND: 4 connections (R1_/2, R2_/2, C1_/2, D1_/2) ✓
- +3V3: 1 connection (R2_/1) ✓
- +5V: 1 connection (C1_/1) ✓
- Netlist generation: 4 nets detected ✓
- Comprehensive power circuit test: PASSED ✓
Updates:
- get_net_connections() now accepts optional schematic_path parameter
- generate_netlist() automatically uses improved connectivity analysis
- Full integration with PinLocator for accurate pin matching
Addresses: Phase 2 net connectivity analysis requirements
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-10 10:52:20 -05:00
..
2025-11-17 15:40:20 -05:00
2025-10-25 20:48:00 -04:00
2025-10-25 20:48:00 -04:00
2026-01-10 10:49:08 -05:00
2025-11-14 16:38:16 -05:00
2026-01-10 10:52:20 -05:00
2025-11-14 16:38:16 -05:00
2026-01-10 10:10:57 -05:00
2025-11-17 16:44:00 -05:00
2026-01-10 09:04:56 -05:00
2026-01-10 09:04:56 -05:00
2026-01-10 09:04:56 -05:00
2025-10-25 20:48:00 -04:00
2026-01-10 10:06:16 -05:00
2025-12-31 10:57:10 -05:00
2026-01-10 10:35:16 -05:00
2026-01-10 09:54:51 -05:00
2025-11-05 09:10:45 -05:00
2026-01-10 09:04:56 -05:00
2026-01-10 10:35:16 -05:00