cad-editor/src/app/update
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven e1c19d8af3 perf(snap): keep snap/hover responsive on block-heavy drawings
Snap and hover hit-testing scanned the whole model wire set every cursor move; a heavily block-instanced drawing explodes to millions of wires, so this stalled for over a second per move. Add a cached spatial grid (wire_grid) keyed on the geometry epoch and query only the cursor neighbourhood via Scene::hit_test_wires_near. Gate the O(in-range segments squared) intersection passes on the in-range POINT count, not the wire count — a handful of curved wires, each hundreds of tessellated points, blew the quadratic up while the wire count looked modest. Give zero-size entities away from the origin (POINTs) a real cullable AABB, and fall back to a block sub-wire's own world points when its entity bounding box is degenerate.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-09 01:00:51 +03:00
..
command.rs feat(properties): navigate polyline vertices from the panel 2026-07-08 17:53:05 +03:00
dialog.rs feat(ribbon): collapse overflowing panels to flyout buttons, anchor dropdowns to their widget 2026-07-05 18:04:55 +03:00
dynamic.rs feat(draw): Arc Continue command; 3-Point default 2026-07-08 20:39:40 +03:00
file.rs chore: post-merge cleanup for #287/#289 2026-07-06 01:22:10 +03:00
mod.rs feat(hatch): editable gradient colors + background color 2026-07-08 23:35:27 +03:00
style.rs refactor(viewport): migrate model-space tiling to iced pane_grid 2026-06-27 11:50:11 +03:00
util.rs refactor: split four oversized files into submodule trees 2026-06-26 22:51:29 +03:00
viewport.rs perf(snap): keep snap/hover responsive on block-heavy drawings 2026-07-09 01:00:51 +03:00