cad-editor/src/scene/model
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 626e8091f7 refactor(viewport): unify content-viewport clipping on the stencil path
Rectangular paper viewports now go through the same GPU stencil clip as
non-rectangular ones: viewport_clip_boundary_ndc returns the four rect
corners (a full-target mask) instead of nothing, so the render path has
no rect/non-rect special case — every content viewport carries a clip
boundary and draws with stencil reference 0xFF.

With a single clip path, the old per-wire / -image / -wipeout scissor
mechanism is fully dead and removed: compute_*_scissors, the
*_pixel_scissors buffers, the project_scissor helper, the per-pass
set_scissor_rect blocks, the vp_scissor field threaded through
WireModel / ImageModel / HatchModel and their GPU mirrors (WireGpu /
ImageGpu / WipeoutGpu / HatchWebGpu), from_run's scissor parameter, the
scissor grouping in build_wire_buffers, and the is_arena_eligible gate.
Net -245 lines across 54 files.

Rectangular viewports still clip exactly via their own render rectangle;
the stencil mask is a redundant full-target no-op there, kept only so
the clip code path stays uniform. XCLIP keeps its CPU wire clip.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-20 11:06:28 +03:00
..
hatch_model.rs refactor(viewport): unify content-viewport clipping on the stencil path 2026-07-20 11:06:28 +03:00
hatch_patterns.rs fix: address review findings on merged #293/#292 hatch+snap 2026-07-06 20:23:59 +03:00
image_model.rs refactor(viewport): unify content-viewport clipping on the stencil path 2026-07-20 11:06:28 +03:00
mesh_model.rs feat(solid3d): ISOLINES and silhouettes on sphere and torus faces 2026-07-17 23:30:05 +03:00
mod.rs refactor(scene): rename model_solid to solid_model 2026-06-16 11:39:31 +03:00
object.rs feat(hatch): editable pattern props + origin grip 2026-07-08 22:48:33 +03:00
solid_model.rs refactor: remove dead world_offset plumbing (RTE migration is complete) 2026-06-24 18:35:02 +03:00
wire_model.rs refactor(viewport): unify content-viewport clipping on the stencil path 2026-07-20 11:06:28 +03:00