Skip to content

test: reproduce near-axis-aligned trace passing through a chip - #1200

Open
tcsenpai wants to merge 1 commit into
tscircuit:mainfrom
tcsenpai:repro/near-axis-aligned-trace-through-chip
Open

tcsenpai wants to merge 1 commit into
tscircuit:mainfrom
tcsenpai:repro/near-axis-aligned-trace-through-chip

Conversation

@tcsenpai

Copy link
Copy Markdown

SJ2.1 sits at x=5.3999378 while R3.2 sits at x=5.4, so the recovered trace between them is skewed by about 6e-5. That is far below the routing grid but far above the 1e-9 epsilon used to classify axis-aligned segments, so the segment matches neither fast path in segmentIntersectsRect and is reported as colliding with nothing. The trace then runs straight through schematic_component_8.

Two tests pin current behaviour: the unit-level miss in segmentIntersectsRect, and the resulting trace crossing a chip it does not terminate on. A truly diagonal segment is left out of scope. Test only, no lib/ changes. The fix is in #1100.

@vercel

vercel Bot commented Sep 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
schematic-trace-solver Ready Ready Preview Sep 14, 2026 11:48am UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview 6d3cac47 Deployed Sep 14, 2026 by vercel[bot]
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.

1 participant