/claim #78
Extra trace lines were appearing in schematic diagrams after the post-processing step.
In UntangleTraceSubsolver._applyBestRoute(), when replacing an L-shaped corner with a new route, the function was directly concatenating path segments without simplifying them. This could leave redundant collinear points or duplicate consecutive points.
simplifyPath immediately after rerouting - Added call to simplifyPath() in _applyBestRoute()simplifyPath to handle duplicate points - Added preprocessing step to remove duplicate consecutive pointssimplifyPathlib/solvers/TraceCleanupSolver/sub-solver/UntangleTraceSubsolver.tslib/solvers/TraceCleanupSolver/simplifyPath.tstests/functions/simplifyPath.test.ts (new)tests/examples/__snapshots__/example29.snap.svg (updated)All 57 tests pass ✓
lamb356
@lamb356
tscircuit
@tscircuit