cad-editor/src/scene
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 572e9aca01 fix(camera): keep ortho depth precision constant across zoom
The orthographic near/far span was ±1000x the camera distance, so
zooming out ballooned the depth range and collapsed z-buffer precision:
coincident solids, meshes and wires then flipped draw order (meshes drew
in front of solids only when zoomed out, correct order when zoomed in).

Size the depth half-range from the drawing's extent instead — the bbox
diagonal on fit_to_bounds, the view height on a restored saved view —
and hold it constant as the camera zooms, so precision no longer depends
on distance. Falls back to the old distance-scaled range when unset.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-02 01:23:27 +03:00
..
cache fix(blocks): layer-0 children inherit the block instance layer (#221) 2026-06-30 17:24:04 +03:00
convert feat(layers): enforce layer lock (select/modify/fade + cursor badge) 2026-07-01 13:10:39 +03:00
model feat(properties): show & edit block attributes in panel 2026-07-01 07:42:50 +03:00
pick feat(nav): turntable orbit, selection/cursor pivot, Shift+MMB rotate (#229) 2026-07-01 21:58:04 +03:00
pipeline fix(render): draw 3D surface fills at their real depth, not draw order 2026-07-02 01:23:27 +03:00
text fix(block-cache): address PR211 review follow-ups 2026-06-28 21:57:51 +03:00
view fix(camera): keep ortho depth precision constant across zoom 2026-07-02 01:23:27 +03:00
camera_ops.rs fix(camera): keep ortho depth precision constant across zoom 2026-07-02 01:23:27 +03:00
entity.rs fix(blocks): layer-0 children inherit the block instance layer (#221) 2026-06-30 17:24:04 +03:00
group_layer.rs feat(layers): enforce layer lock (select/modify/fade + cursor badge) 2026-07-01 13:10:39 +03:00
layout.rs refactor(viewport): migrate model-space tiling to iced pane_grid 2026-06-27 11:50:11 +03:00
mod.rs feat(nav): turntable orbit, selection/cursor pivot, Shift+MMB rotate (#229) 2026-07-01 21:58:04 +03:00
modify.rs fix(layers): close locked-layer gaps found in review 2026-07-01 13:14:33 +03:00
mspace.rs feat(nav): turntable orbit, selection/cursor pivot, Shift+MMB rotate (#229) 2026-07-01 21:58:04 +03:00
paper.rs refactor: split four oversized files into submodule trees 2026-06-26 22:51:29 +03:00
preview.rs refactor: split four oversized files into submodule trees 2026-06-26 22:51:29 +03:00
project.rs refactor: split four oversized files into submodule trees 2026-06-26 22:51:29 +03:00
selection.rs feat(layers): enforce layer lock (select/modify/fade + cursor badge) 2026-07-01 13:10:39 +03:00