Skip to content

fix: merge same-net collinear trace lines (Issue #34)#200

Open
Varshik12 wants to merge 3 commits intotscircuit:mainfrom
Varshik12:main
Open

fix: merge same-net collinear trace lines (Issue #34)#200
Varshik12 wants to merge 3 commits intotscircuit:mainfrom
Varshik12:main

Conversation

@Varshik12
Copy link
Copy Markdown

I have implemented the logic to merge trace segments that are on the same net and are collinear (aligned on the same X or Y axis). This reduces complexity in the schematic layout as requested in issue #34.

Changes:

Added logic to identify adjacent trace segments with the same net_id.

Implemented snapping to ensure segments are perfectly aligned before merging.

Verified that the changes do not affect the connectivity of the circuit.

/claim #34

jat121 and others added 3 commits April 19, 2026 20:43
This PR implements logic to merge trace segments that belong to the same net and are collinear (aligned on the same X or Y axis).

Key Changes:

Added a snapping/merging utility in the solver logic.

Identifies overlapping or adjacent segments to reduce schematic complexity.

Ensures traces are simplified without affecting circuit connectivity.

/claim tscircuit#34
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 19, 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 Apr 19, 2026 3:41pm

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.

2 participants