Skip to content

feat: merge same-net trace lines close on same X or Y axis#362

Open
Munirubenz wants to merge 1 commit into
tscircuit:mainfrom
Munirubenz:main
Open

feat: merge same-net trace lines close on same X or Y axis#362
Munirubenz wants to merge 1 commit into
tscircuit:mainfrom
Munirubenz:main

Conversation

@Munirubenz
Copy link
Copy Markdown

Summary

Fixes #34

This PR adds a new mergeSameNetTraceLines function that merges trace line segments that:

  • Belong to the same net
  • Are on the same X or Y axis
  • Are close together

Changes

  • Added lib/solvers/TraceCleanupSolver/mergeSameNetTraceLines.ts
  • Integrated the merge step into TraceCleanupSolver.ts as a final cleanup pass

How it works

After all other cleanup steps, traces are grouped by their netId. Segments on the same axis within the threshold distance are merged into a single extended segment.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 16, 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 16, 2026 8: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.

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

1 participant