refactor(scene): remove the world_offset field (P7)
Delete the world_offset field from Scene and DerivedCaches and the load-time assignment; every reader now uses a zero origin. Geometry is absolute and the double-single relative-to-eye pipeline keeps it precise, so the coarse origin is gone. world_offset_from_centers still derives local_extent_max (camera/cull span) but returns no offset. The remaining `world_offset: [f64;3]` function parameters are now always zero — dead plumbing left for a later mechanical sweep; behaviour is unchanged. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
b473f6a8cb
commit
ccc933e7b0
8 changed files with 61 additions and 68 deletions
|
|
@ -144,7 +144,7 @@ impl OpenCADStudio {
|
|||
(glam::Vec3::ZERO, (glam::Vec3::X, glam::Vec3::Y, glam::Vec3::Z))
|
||||
} else {
|
||||
let (o, ux, uy, uz) = tab.ucs_xform().axes();
|
||||
let wo = tab.scene.world_offset;
|
||||
let wo = [0.0_f64; 3];
|
||||
let o_wire = glam::Vec3::new(
|
||||
o.x - wo[0] as f32,
|
||||
o.y - wo[1] as f32,
|
||||
|
|
@ -901,7 +901,7 @@ impl OpenCADStudio {
|
|||
let cursor_coord = {
|
||||
let lc = tab.last_cursor_world;
|
||||
if is_model {
|
||||
let wo = tab.scene.world_offset;
|
||||
let wo = [0.0_f64; 3];
|
||||
let wcs = glam::Vec3::new(
|
||||
lc.x + wo[0] as f32,
|
||||
lc.y + wo[1] as f32,
|
||||
|
|
|
|||
Loading…
Reference in a new issue