← Commit history

fusion-driving: modelToSketchSpace pitfall (credit Oliver)

John Lauer ·1e1dbac5b0 ·1mo ago ·parent 11d2696
1 file changed +9−1
skills/fusion-driving/SKILL.md+9−1
@@ -69,7 +69,7 @@ delete bodies out of it (a real near-miss, issue #289). So across a multi-step m **`expectDocument`** with the name you expect to be active:  ```bash-adom-desktop fusion_run_modeling_script '{"script":"...","expectDocument":"Monitor arms v1"}'+adom-bridge-cli fusion_run_modeling_script '{"script":"...","expectDocument":"Monitor arms v1"}' ```  If the active document is not that, the bridge refuses **before executing** and returns@@ -217,3 +217,11 @@ do mutating op ```  Slow is smooth, smooth is fast. The one time you skip the look is the time you lose the library.++## Pitfall: sketch.modelToSketchSpace() does not project onto the sketch plane++(Oliver, 2026-07-23 session.) `modelToSketchSpace()` transforms coordinates; it does NOT+project the point onto the sketch plane. A wrong off-plane coordinate passes straight+through into the resulting geometry, silently, offset by exactly the plane offset. This+caused a real bug: a body landed at the wrong Z with a perfectly clean-looking render.+Verify geometry with `fusion_inspect_bodies` (bbox in mm) instead of trusting the viewport.