Skip to content

Merge nearby same-net trace lines#364

Open
prokesmic wants to merge 2 commits into
tscircuit:mainfrom
prokesmic:merge-nearby-same-net-trace-lines
Open

Merge nearby same-net trace lines#364
prokesmic wants to merge 2 commits into
tscircuit:mainfrom
prokesmic:merge-nearby-same-net-trace-lines

Conversation

@prokesmic
Copy link
Copy Markdown

@prokesmic prokesmic commented May 17, 2026

/claim #34

Closes #34

Summary

  • Adds a same-net trace cleanup pass that aligns nearby overlapping horizontal or vertical trace segments.
  • Keeps endpoint segments fixed so traces remain attached to pins.
  • Moves the shorter internal segment onto the longer overlapping segment, then simplifies the path.
  • Rejects same-net alignment moves that would create a coincident overlap with a different net.
  • Covers horizontal, vertical, different-net, foreign-net-overlap, and issue-specific example34 behavior with tests.

Verification

  • npx bun test tests/examples/example34.test.ts -> 1 pass, 0 fail
  • npx bun test tests/solvers/TraceCleanupSolver
  • npx bun run format:check
  • npx bun run build
  • npx bun test

Full suite result: 61 pass, 4 skip, 0 fail.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 17, 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 May 17, 2026 6:46am

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.

Merge same-net trace lines that are close together (make at the same Y or same X)

1 participant