Skip to content

Align close same-net trace segments#540

Open
Ethan2040 wants to merge 2 commits into
tscircuit:mainfrom
Ethan2040:codex/merge-same-net-trace-lines
Open

Align close same-net trace segments#540
Ethan2040 wants to merge 2 commits into
tscircuit:mainfrom
Ethan2040:codex/merge-same-net-trace-lines

Conversation

@Ethan2040

@Ethan2040 Ethan2040 commented Jun 14, 2026

Copy link
Copy Markdown

/claim #34

Summary

  • Add a cleanup pass that aligns close, overlapping same-net trace segments onto the same X/Y coordinate.
  • Run that pass after turn minimization and Z-shape balancing in TraceCleanupSolver.
  • Cover horizontal alignment, vertical alignment, and different-net non-alignment with focused tests.

Why

Fixes #34. Same-net traces that are already close should visually merge by sharing a coordinate instead of remaining as near-parallel lines.

Validation

  • bun test
  • bun run build
  • bunx biome check --write lib\solvers\TraceCleanupSolver\alignSameNetTraceSegments.ts lib\solvers\TraceCleanupSolver\TraceCleanupSolver.ts tests\functions\align-same-net-trace-segments.test.ts

@vercel

vercel Bot commented Jun 14, 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 Ready Ready Preview, Comment Jun 23, 2026 11:44pm

Request Review

@Ethan2040

Copy link
Copy Markdown
Author

/claim #34

@Ethan2040

Copy link
Copy Markdown
Author

PayPal works for me as the preferred alternative payout method. I can provide either a PayPal payment link, PayPal.Me link, or PayPal email privately after you confirm that manual PayPal payout is supported.

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