cad-editor/src/modules/annotate
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
..
aligned_dim.rs refactor(viewport): unify content-viewport clipping on the stencil path 2026-07-20 11:06:28 +03:00
angular_dim.rs refactor(viewport): unify content-viewport clipping on the stencil path 2026-07-20 11:06:28 +03:00
data_extract.rs feat: redesign View tab and fix Annotate/tab order 2026-04-09 12:25:15 +03:00
data_link.rs feat: redesign View tab and fix Annotate/tab order 2026-04-09 12:25:15 +03:00
ddedit.rs feat(alias): centralize command aliases in user-editable ocad.pgp (#286/#288) 2026-07-10 12:39:22 +03:00
diameter_dim.rs refactor(viewport): unify content-viewport clipping on the stencil path 2026-07-20 11:06:28 +03:00
dim_baseline.rs refactor(viewport): unify content-viewport clipping on the stencil path 2026-07-20 11:06:28 +03:00
dim_continue.rs refactor(viewport): unify content-viewport clipping on the stencil path 2026-07-20 11:06:28 +03:00
dimbreak.rs feat(alias): centralize command aliases in user-editable ocad.pgp (#286/#288) 2026-07-10 12:39:22 +03:00
dimedit.rs feat(alias): centralize command aliases in user-editable ocad.pgp (#286/#288) 2026-07-10 12:39:22 +03:00
dimjogline.rs refactor(viewport): unify content-viewport clipping on the stencil path 2026-07-20 11:06:28 +03:00
dimspace.rs feat(f64): command layer compiles on DVec3 2026-06-24 03:51:50 +03:00
dimtedit.rs refactor(viewport): unify content-viewport clipping on the stencil path 2026-07-20 11:06:28 +03:00
leader_cmd.rs refactor(viewport): unify content-viewport clipping on the stencil path 2026-07-20 11:06:28 +03:00
linear_dim.rs refactor(viewport): unify content-viewport clipping on the stencil path 2026-07-20 11:06:28 +03:00
mleader_cmd.rs refactor(viewport): unify content-viewport clipping on the stencil path 2026-07-20 11:06:28 +03:00
mleader_edit.rs refactor(viewport): unify content-viewport clipping on the stencil path 2026-07-20 11:06:28 +03:00
mod.rs fix(annoscale): make the OBJECTSCALE dialog reachable 2026-07-16 13:14:37 +03:00
mtext.rs feat(alias): centralize command aliases in user-editable ocad.pgp (#286/#288) 2026-07-10 12:39:22 +03:00
ordinate_dim.rs refactor(viewport): unify content-viewport clipping on the stencil path 2026-07-20 11:06:28 +03:00
qdim.rs refactor(viewport): unify content-viewport clipping on the stencil path 2026-07-20 11:06:28 +03:00
radius_dim.rs refactor(viewport): unify content-viewport clipping on the stencil path 2026-07-20 11:06:28 +03:00
table_cmd.rs refactor(viewport): unify content-viewport clipping on the stencil path 2026-07-20 11:06:28 +03:00
text.rs feat(alias): centralize command aliases in user-editable ocad.pgp (#286/#288) 2026-07-10 12:39:22 +03:00
textedit.rs feat(f64): command layer compiles on DVec3 2026-06-24 03:51:50 +03:00
tolerance_cmd.rs refactor(viewport): unify content-viewport clipping on the stencil path 2026-07-20 11:06:28 +03:00