Skip to content

fix: translate component mesh vertices to world coordinates and creat…#57

Open
bossco7598 wants to merge 1 commit intotscircuit:mainfrom
bossco7598:fix/missing-component-rectangles
Open

fix: translate component mesh vertices to world coordinates and creat…#57
bossco7598 wants to merge 1 commit intotscircuit:mainfrom
bossco7598:fix/missing-component-rectangles

Conversation

@bossco7598
Copy link
Copy Markdown

…e separate STEP solids per component

Fixes #6 - Missing rectangles in STEP output

Root cause: mesh triangles from convertCircuitJsonTo3D are in local coordinates relative to each component box center, but the code treated them as world coordinates. Components near origin appeared correct by coincidence, while components elsewhere were rendered at origin (hidden inside the board).

Changes:

  • Translate mesh vertices by box.center offset before processing
  • Create separate ClosedShell and ManifoldSolidBrep per component (fixes invalid topology from merging disconnected components into one shell)

All 11 tests pass.

…e separate STEP solids per component

Fixes tscircuit#6 - Missing rectangles in STEP output

Root cause: mesh triangles from convertCircuitJsonTo3D are in local coordinates relative to each component box center, but the code treated them as world coordinates. Components near origin appeared correct by coincidence, while components elsewhere were rendered at origin (hidden inside the board).

Changes:
- Translate mesh vertices by box.center offset before processing
- Create separate ClosedShell and ManifoldSolidBrep per component (fixes invalid topology from merging disconnected components into one shell)

All 11 tests pass.
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 15, 2026

@bossco7598 is attempting to deploy a commit to the tscircuit Team on Vercel.

A member of the Team first needs to authorize it.

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.

Determine why rectangles are missing in output

1 participant