Skip to content

Expose CAD component placement transforms with named inputs - #3

Merged
seveibar merged 2 commits into
mainfrom
cad-pose-transform
Sep 23, 2026
Merged

seveibar merged 2 commits into
mainfrom
cad-pose-transform

Conversation

@seveibar

@seveibar seveibar commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Expose CadComponentPlacement and transformCadComponentPlacement for transforming CAD position/rotation before the database record exists. Existing records use transformCadComponent. Both take named function inputs first and the shared CadFoldContext second, following the handbook.

Use explicit cadComponent and cadComponentPlacement names. Convert the remaining flex-utils helpers with more than two arguments to named arguments, including polygon extrusion and stiffener generation; update the documented API.

Validation: ten tests (1,032 assertions), type checking and build pass. An AST check verifies every flex-utils function has at most two parameters. Core, viewer and GLTF call sites are updated in their dependent PRs and pass focused tests/type checking against this build.

@seveibar seveibar changed the title Expose pose-only CAD folding transforms Expose CAD component placement transforms with named inputs Sep 23, 2026
@seveibar
seveibar merged commit 68c3ae1 into main Sep 23, 2026
2 checks passed
@tscircuitbot

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! 🎉

PR Rating: ⭐
Impact: Tiny

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


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