Skip to content

fix: New Phase To combine same-net trace segments that are close #137

Open
misteromb wants to merge 1 commit intotscircuit:mainfrom
misteromb:fix/issue-29
Open

fix: New Phase To combine same-net trace segments that are close #137
misteromb wants to merge 1 commit intotscircuit:mainfrom
misteromb:fix/issue-29

Conversation

@misteromb
Copy link

@misteromb misteromb commented Mar 23, 2026

/claim #29

Summary

Fixes #29

Changes

Added SameNetSegmentCombinerSolver pipeline phase to combine same-net trace segments that are close together, as described in #29.

Testing

  • Ran existing test suite — all tests pass
  • Ran linter/formatter if available — no new warnings

…e same-net traces (closes tscircuit#29)

Adds a new pipeline phase that runs after TraceOverlapShiftSolver and before
NetLabelPlacementSolver. It finds trace segments belonging to the same net
whose endpoints are close together (within a configurable threshold) and
merges them into single combined traces. This handles:

- Endpoint-to-endpoint merging (all 4 combinations)
- Endpoint-to-segment merging (T-junction connections)
- Collinear point simplification after merge
- Chain merging (3+ traces merged iteratively)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Mar 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
schematic-trace-solver Ready Ready Preview, Comment Mar 23, 2026 7:21pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New Phase To combine same-net trace segments that are close together

1 participant