forked from 1b-agent/opencadstudio-upstream
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:
1 parent
b473f6a8cb
commit
ccc933e7b0
8 files changed
+61
-68
No files matched your search
@@ -435,7 +435,7 @@ impl OpenCADStudio {
|
||||
let wo = if is_paper {
|
||||
[0.0f64; 3]
|
||||
} else {
|
||||
self.tabs[i].scene.world_offset
|
||||
[0.0_f64; 3]
|
||||
};
|
||||
let (new_handle, new_grips) = {
|
||||
let selected = self.tabs[i].scene.selected_entities();
|
||||
@@ -657,7 +657,7 @@ impl OpenCADStudio {
|
||||
// DXF coordinate. Skip for paper-space entities (they use sheet mm coords).
|
||||
let is_paper = self.tabs[i].scene.current_layout != "Model";
|
||||
if !is_paper {
|
||||
let wo = self.tabs[i].scene.world_offset;
|
||||
let wo = [0.0_f64; 3];
|
||||
if wo[0] != 0.0 || wo[1] != 0.0 || wo[2] != 0.0 {
|
||||
let delta = acadrust::types::Vector3::new(wo[0], wo[1], wo[2]);
|
||||
let t = acadrust::types::Transform::from_translation(delta);
|
||||
|
||||
Reference in new issue
Block a user