Skip to content

repro: solder jumper bridge trace endpoint lands outside pad boundary (FP precision) - #752

Closed
itisrohit wants to merge 6 commits into
tscircuit:mainfrom
itisrohit:repro/solder-jumper-fp-precision
Closed

repro: solder jumper bridge trace endpoint lands outside pad boundary (FP precision)#752
itisrohit wants to merge 6 commits into
tscircuit:mainfrom
itisrohit:repro/solder-jumper-fp-precision

Conversation

@itisrohit

@itisrohit itisrohit commented Jul 29, 2026

Copy link
Copy Markdown

src/fn/solderjumper.ts:56-57 computes bridge trace endpoints at padWidth / 2 from pad center (exactly on the pad edge). With non-exact IEEE 754 values like pw=0.6604, the compound FP error pushes the endpoint ~5.55e-17mm outside the pad. Downstream DRC (isPointInPad) then reports a false "disconnected endpoint" error.

@seveibar seveibar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no tsx = no repro

@itisrohit

Copy link
Copy Markdown
Author

This repro belongs in @tscircuit/core or @tscircuit/checks — the footprinter geometry is correct. The bug is isPointInPad missing an epsilon tolerance.

@itisrohit itisrohit closed this Jul 29, 2026
@itisrohit
itisrohit deleted the repro/solder-jumper-fp-precision branch July 29, 2026 22:14
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.

2 participants