cad-editor/examples
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan 78cbb5570e perf(scene): frustum-cull wires using camera view AABB
Block defns and top-level entities now know their world-space XY
AABB, and `tessellate_entity` / `expand_insert` early-out for anything
that doesn't intersect the camera's view rect. Tested commit-only on
time_open (correct subset emitted with default camera); GUI run
pending user verification.

Cache plumbing:
  - `LocalWire` / `BlockDefn` carry `aabb_local` (post-build recursive
    union over nested defns).
  - `Scene::view_world_aabb()` derives a 25%-margined world rect from
    the active camera + last-seen render aspect.
  - `wire_cache` / `paper_sheet_cache` keys widen to
    `(geometry_epoch, camera_generation)` so pan/zoom invalidates the
    cached wire list — and pipeline `cached_epoch` widens to match
    so the GPU re-uploads on view change.
  - `XrefStatus::Unloaded` ack already shipped — orthogonal to this.

Also adds `examples/xref_states.rs` to dump per-block_record xref
metadata for diagnosing the is_loaded / unloaded distinction.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-14 13:52:04 +03:00
..
find_raster.rs chore: expose lib target + open-path profiling examples 2026-05-13 23:02:54 +03:00
inspect_insert.rs chore: expose lib target + open-path profiling examples 2026-05-13 23:02:54 +03:00
inspect_polyline.rs feat(io): drop parser-garbage entities at load time 2026-05-13 10:00:16 +03:00
time_open.rs chore: expose lib target + open-path profiling examples 2026-05-13 23:02:54 +03:00
xref_states.rs perf(scene): frustum-cull wires using camera view AABB 2026-05-14 13:52:04 +03:00