cad-editor/src/scene/model
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 56d507fd88 refactor: remove dead world_offset plumbing (RTE migration is complete)
Now that geometry reaches the GPU/CPU as absolute coordinates via the
double-single relative-to-eye path, world_offset is always [0,0,0]. Strip
the parameter that was threaded through the whole tessellation / block-
expansion / fallback / camera-decode chain and the ExpandCtx field that
carried it — ~340 references across 20 files, all subtracting zero.

- truck_tess: to_local / to_local_low / tessellate_* drop the offset arg;
  to_local is now a pure double-single split.
- tessellate: offset_to_ds → points_to_ds (pure DS split); tessellate(),
  tessellate_entity(), fallback_geometry(), solid_wire_fallback(),
  entity_aabb(), expand_insert(), expand_block_meshes(), the dimension
  helpers (vec3_local, dimension_snap_pts, …), text_support, leader,
  multileader, image_model, xclip and camera_from_view all lose the param.
- block_cache: ExpandCtx loses its world_offset field.
- Remove the now-dead offset_snap_pts and the unused set_grid_snap.

Behaviour is unchanged (the offset was zero everywhere); the compiler
verifies every call site.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 18:35:02 +03:00
..
hatch_model.rs refactor(scene): group modules into role-based subfolders 2026-06-16 11:33:46 +03:00
hatch_patterns.rs refactor(scene): group modules into role-based subfolders 2026-06-16 11:33:46 +03:00
image_model.rs refactor: remove dead world_offset plumbing (RTE migration is complete) 2026-06-24 18:35:02 +03:00
mesh_model.rs feat(render): double-single vertices for the mesh pipeline 2026-06-23 18:28:52 +03:00
mod.rs refactor(scene): rename model_solid to solid_model 2026-06-16 11:39:31 +03:00
object.rs feat(f64): command layer compiles on DVec3 2026-06-24 03:51:50 +03:00
solid_model.rs refactor: remove dead world_offset plumbing (RTE migration is complete) 2026-06-24 18:35:02 +03:00
wire_model.rs fix(snap): f64-precise computed snaps + UTM-tolerant cull + f64 previews 2026-06-24 04:26:05 +03:00