cad-editor/src/scene
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 60d4712179 fix(paste): UTM-precise paste/block base via f64 centroid
entities_centroid summed the f32 points (double-single HIGH half) alone, so
at UTM scale (~5.7e6) it both quantized each term ~0.5 m and lost low bits
across the running total — drifting the paste base and PASTEBLOCK's block
base metres off, which placed the wrapped block at the wrong spot/scale.

It now reconstructs each vertex's absolute f64 from points + points_low and
accumulates in f64. clipboard_centroid is DVec3; the PASTECLIP commit delta
is fully f64; define_block_from_owned_entities takes an f64 base so the
block-local fold (Translate(-base)) stays precise. The interactive ghost
anchors (PasteCommand, InsertBlockCommand) still take the f32 cast — display
only; the committed geometry is f64.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 10:42:58 +03:00
..
cache refactor(paste): one finalize path; carry XCLIP through all three pastes 2026-06-24 09:53:28 +03:00
convert fix(render): UTM-precise UCS icon + fallback outlines (hatch etc.) 2026-06-24 10:09:19 +03:00
model fix(snap): f64-precise computed snaps + UTM-tolerant cull + f64 previews 2026-06-24 04:26:05 +03:00
pick fix(pick): UTM-precise click / box / lasso selection 2026-06-24 10:33:42 +03:00
pipeline refactor(snap): widen key_vertices to f64 (world_offset removal P4) 2026-06-23 22:23:56 +03:00
text feat(render): double-single fills for the face3d pipeline 2026-06-23 18:28:52 +03:00
view fix(camera): centre ortho depth range so deep zoom doesn't clip the drawing 2026-06-24 10:22:44 +03:00
mod.rs fix(paste): UTM-precise paste/block base via f64 centroid 2026-06-24 10:42:58 +03:00