Skip to content

Fix TO-92 footprint origin#674

Open
Lathikaa-S wants to merge 1 commit into
tscircuit:mainfrom
Lathikaa-S:fix-to92-origin
Open

Fix TO-92 footprint origin#674
Lathikaa-S wants to merge 1 commit into
tscircuit:mainfrom
Lathikaa-S:fix-to92-origin

Conversation

@Lathikaa-S

@Lathikaa-S Lathikaa-S commented Jul 2, 2026

Copy link
Copy Markdown
image

Issue

The TO-92 footprint was not centered around pcbX: 0 / pcbY: 0. The body and courtyard sat above the origin, so the component/model origin did not line up cleanly with the footprint. This made the footprint look offset when compared with the 3D/model placement.

What changed

  • Moved the TO-92 body so its silkscreen is centered on 0,0.
  • Moved the courtyard to stay centered around the same origin.
  • Placed the pads relative to the centered body, instead of applying a broad post-processing offset.
  • Kept the implementation close to the existing footprinter pattern with simple coordinate changes.
  • Added a regression test that checks TO-92 body and courtyard centers are at the footprint origin.
  • Updated TO-92 SVG snapshots.

@Lathikaa-S Lathikaa-S force-pushed the fix-to92-origin branch 2 times, most recently from 2441c87 to d90dc21 Compare July 2, 2026 10:16
@mohan-bee

Copy link
Copy Markdown
image image

i feel like the footprint moved in opposite way !!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am confused what is happening here, make things clear for the reviewer. The 3d snapshot should be using this footprint and not the inline one

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.

3 participants