Skip to content

Add same-net trace consolidation phase#411

Open
ColumbusLabs wants to merge 3 commits into
tscircuit:mainfrom
ColumbusLabs:algora-tscircuit-same-net-trace-merge
Open

Add same-net trace consolidation phase#411
ColumbusLabs wants to merge 3 commits into
tscircuit:mainfrom
ColumbusLabs:algora-tscircuit-same-net-trace-merge

Conversation

@ColumbusLabs
Copy link
Copy Markdown

Summary

  • add a same-net trace consolidation phase after trace cleanup and before final label placement
  • snap close same-net horizontal and vertical segments onto the longest compatible segment coordinate while preserving pin anchors and trace metadata
  • reject unsafe snaps that would create diagonals, add chip collisions, or add different-net intersections
  • preserve final visualization label metadata so SVG snapshot changes stay focused on trace geometry

Addresses #29 and #34.

Tests

  • ~/.bun/bin/bun test tests/solvers/SameNetTraceConsolidationSolver/SameNetTraceConsolidationSolver.test.ts
  • ~/.bun/bin/bun test tests/solvers/SchematicTracePipelineSolver/SchematicTracePipelineSolver_sameNetTraceConsolidationPhase.test.ts tests/examples/example37.test.ts
  • ~/.bun/bin/bun test
  • ~/.bun/bin/bunx tsc --noEmit
  • ~/.bun/bin/bun run format:check
  • ~/.bun/bin/bun run build

/claim #29

@vercel
Copy link
Copy Markdown

vercel Bot commented May 22, 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 22, 2026 4:10pm

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.

1 participant