cad-editor/src/modules/home
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven fbbac423d4 perf(scene): extend viewport scissor to hatch / image / wipeout passes (Phase 1.4)
Wire pass already uses `WireModel.vp_scissor` to clip viewport-projected
geometry to its paper-space viewport rect; hatch / image / wipeout
passes drew across the whole canvas. When a future paper-space path
projects fills/images into a viewport, they would bleed past the
viewport frame.

Add `vp_scissor: Option<[f32; 4]>` to HatchModel and ImageModel
(mirroring WireModel), forward it through HatchGpu / ImageGpu, and add
per-pass `compute_*_scissors` / `set_scissor_rect` machinery. Factored
the wire-side scissor-projection math into a shared `project_scissor`
helper. Field defaults to None at every constructor site — no producer
sets it yet, so this is plumbing for the paper-viewport fill projection
that Phase 1.4 unblocks without changing current visual output.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-15 23:13:16 +03:00
..
clipboard Co-locate CadCommand impls with their ribbon toolbar modules 2026-03-22 23:21:29 +03:00
draw perf(scene): extend viewport scissor to hatch / image / wipeout passes (Phase 1.4) 2026-05-15 23:13:16 +03:00
groups Co-locate CadCommand impls with their ribbon toolbar modules 2026-03-22 23:21:29 +03:00
inquiry cargo fmt 2026-05-12 10:36:15 +03:00
layers cargo fmt 2026-05-12 10:36:15 +03:00
modify fix(explode): correct arc/ellipse direction in mirrored INSERT blocks 2026-05-12 22:04:12 +03:00
properties Co-locate CadCommand impls with their ribbon toolbar modules 2026-03-22 23:21:29 +03:00
about.rs feat: add Report/About/Changelog buttons to Support ribbon group 2026-04-22 22:22:33 +03:00
changelog.rs feat: add Report/About/Changelog buttons to Support ribbon group 2026-04-22 22:22:33 +03:00
defaults.rs first commit 2026-03-22 14:56:27 +03:00
donate.rs first commit 2026-03-22 14:56:27 +03:00
mod.rs cargo fmt 2026-05-12 10:36:15 +03:00
report.rs feat: add Report/About/Changelog buttons to Support ribbon group 2026-04-22 22:22:33 +03:00
select.rs Co-locate CadCommand impls with their ribbon toolbar modules 2026-03-22 23:21:29 +03:00