Skip to content

Fix/snap same net parallel traces - #729

Open
khozakhulile27-netizen wants to merge 127 commits into
tscircuit:mainfrom
khozakhulile27-netizen:fix/snap-same-net-parallel-traces
Open

Fix/snap same net parallel traces#729
khozakhulile27-netizen wants to merge 127 commits into
tscircuit:mainfrom
khozakhulile27-netizen:fix/snap-same-net-parallel-traces

Conversation

@khozakhulile27-netizen

Copy link
Copy Markdown

No description provided.

khozakhulile27-netizen and others added 30 commits May 22, 2026 12:35
Closes tscircuit#34

Adds a new `snapSameNetTraces` step to `TraceCleanupSolver` that detects
parallel segments belonging to the same net that are within a configurable
threshold (default 0.05) of each other and snaps them to their midpoint
coordinate, eliminating near-coincident same-net trace lines.

- New file: lib/solvers/TraceCleanupSolver/snapSameNetTraces.ts
- Modified: TraceCleanupSolver pipeline adds `snapping_same_net` step after `balancing_l_shapes`
- New file: tests/solvers/TraceCleanupSolver/snapSameNetTraces.test.ts (7 unit tests)
@vercel

vercel Bot commented Jul 26, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
schematic-trace-solver Error Error Jul 27, 2026 2:12pm

Request Review

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant