Skip to content

fix: remove redundant second pass in simplifyPath to fix extra trace lines (#78)#356

Open
pon024587-collab wants to merge 1 commit into
tscircuit:mainfrom
pon024587-collab:fix/simplify-path-extra-lines
Open

fix: remove redundant second pass in simplifyPath to fix extra trace lines (#78)#356
pon024587-collab wants to merge 1 commit into
tscircuit:mainfrom
pon024587-collab:fix/simplify-path-extra-lines

Conversation

@pon024587-collab
Copy link
Copy Markdown

Summary

Fixes #78 - removes extra trace lines in post-processing step.

Root Cause

The simplifyPath function had two identical passes that both remove collinear points:

  • First pass: removes redundant collinear points ✅
  • Second pass: does the exact same thing again ❌ (redundant)

Changes

  • Removed the duplicate second loop (16 lines deleted)
  • Single pass is sufficient to simplify the path

Testing

✅ 57 pass, 4 skip, 0 fail

@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 11:51am

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

1 participant