Skip to content

fix: remove duplicate consecutive points in _applyBestRoute#186

Open
lyfher wants to merge 1 commit intotscircuit:mainfrom
lyfher:fix/remove-duplicate-points-applyBestRoute
Open

fix: remove duplicate consecutive points in _applyBestRoute#186
lyfher wants to merge 1 commit intotscircuit:mainfrom
lyfher:fix/remove-duplicate-points-applyBestRoute

Conversation

@lyfher
Copy link
Copy Markdown

@lyfher lyfher commented Apr 15, 2026

Fixes #78

When _applyBestRoute() concatenates path segments, duplicate consecutive
points can appear at the splice junctions (last point of the prefix slice
equals first point of bestRoute, or vice versa). These zero-length segments
render as extra trace lines in the schematic output.

Fix: filter out consecutive duplicate coordinates (within ε = 1e-9) after
building the new path — same pattern already used in TraceOverlapIssueSolver.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 15, 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 15, 2026 0:20am

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.

Fix extra trace lines in post-processing step

2 participants