Files
OneCAD-Draft/src/scene
Hakan SevenandClaude Sonnet 4.6 20629d587a Feat: implement WCS↔UCS coordinate transform pipeline
- Add `active_ucs: Option<Ucs>` per-tab state to DocumentTab
- Add `ucs_to_wcs`, `wcs_to_ucs`, `ucs_z_axis`, `ucs_rotated_z` helpers
- Add `Camera::pick_on_plane` for ray–plane intersection against any plane
- Mouse picks project onto the active UCS XY plane instead of world XY
- Typed coordinates are converted from UCS space to WCS before dispatch
- UCS command now really activates/deactivates a UCS:
  - `UCS W` resets to WCS (clears active_ucs)
  - `UCS <name>` activates a named UCS
  - `UCS SAVE <name>` saves the current active UCS
  - `UCS ORIGIN x,y,z` shifts origin (in current UCS space)
  - `UCS X/Y/Z <angle>` rotates the UCS around its own axes

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-04-06 14:16:06 +03:00
..
2026-03-22 14:56:27 +03:00
2026-03-22 14:56:27 +03:00
2026-03-22 14:56:27 +03:00
2026-03-22 14:56:27 +03:00
2026-03-22 14:56:27 +03:00
2026-03-22 14:56:27 +03:00
2026-03-22 14:56:27 +03:00
2026-03-22 14:56:27 +03:00
2026-03-22 14:56:27 +03:00
2026-03-22 14:56:27 +03:00
2026-03-22 14:56:27 +03:00
2026-03-22 14:56:27 +03:00
2026-03-22 14:56:27 +03:00
2026-03-22 14:56:27 +03:00
2026-03-22 14:56:27 +03:00