cad-editor/src/modules/insert
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 62bd360e46 refactor(precision): widen command transform scalars and defaults to f64 (#311)
Completes the f64 migration on the CPU data path: the only f32 left now
is the GPU/render/screen layer, which is architecturally required (wgpu
vertex buffers and iced are f32; f64 vertices would double memory).

- EntityTransform::Rotate.angle_rad and Scale.factor are now f64 (the
  transform was already applied in f64 around the DVec3 center, so this
  only preserves the typed angle/factor). apply_standard_transform and
  apply_standard_scale take f64.
- CmdResult::ExtrudeEntity.height and AlignSelected.{angle_rad,scale}
  are f64; the EXTRUDE height parses as f64.
- defaults.rs (last-used construction values: circle radius/diameter,
  rotate angle, scale factor, offset/fillet/chamfer distance, array
  spacing/counts/angle) moved from Cell<f32> to Cell<f64>. Array counts
  round-trip through u32 (exact below 2^53).
- Consumers in circle/array/fillet/offset/rotate/scale/align/solid3d and
  dimension.rs rotate_point/scale_point follow. `as f32` is kept only
  where a value feeds a WireModel rubber-band/ghost (the preview path is
  screen-space f32).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-12 00:34:38 +03:00
..
attdef.rs cargo fmt 2026-05-12 10:36:15 +03:00
attedit.rs cargo fmt 2026-05-12 10:36:15 +03:00
attman.rs cargo fmt 2026-05-12 10:36:15 +03:00
attsync.rs cargo fmt 2026-05-12 10:36:15 +03:00
base_point.rs feat(commands): integrate standard CAD commands and fix behavior gaps 2026-06-28 19:27:35 +03:00
box_prim.rs fix(web): render UI icons as SVG instead of font glyphs 2026-06-18 12:29:32 +03:00
clear.rs fix(web): render UI icons as SVG instead of font glyphs 2026-06-18 12:29:32 +03:00
content_browser.rs cargo fmt 2026-05-12 10:36:15 +03:00
create_block.rs feat(f64): command layer compiles on DVec3 2026-06-24 03:51:50 +03:00
cylinder.rs fix(web): render UI icons as SVG instead of font glyphs 2026-06-18 12:29:32 +03:00
design_center.rs cargo fmt 2026-05-12 10:36:15 +03:00
edit_block.rs cargo fmt 2026-05-12 10:36:15 +03:00
insert_block.rs fix(precision): keep typed coordinates exact in f64 (#311) 2026-07-11 21:26:40 +03:00
landxml.rs cargo fmt 2026-05-12 10:36:15 +03:00
minsert.rs feat(commands): expand standard CAD command coverage 2026-06-29 08:23:58 +03:00
mod.rs perf(core): cache ribbon_groups() with OnceLock, avoid per-frame tree allocations 2026-07-02 21:00:57 +01:00
mview_block.rs cargo fmt 2026-05-12 10:36:15 +03:00
open_obj.rs fix(web): render UI icons as SVG instead of font glyphs 2026-06-18 12:29:32 +03:00
pc_attach.rs cargo fmt 2026-05-12 10:36:15 +03:00
recap.rs feat: redesign Insert tab and fix all warnings 2026-04-09 12:44:31 +03:00
snap_underlays.rs cargo fmt 2026-05-12 10:36:15 +03:00
solid3d_cmds.rs refactor(precision): widen command transform scalars and defaults to f64 (#311) 2026-07-12 00:34:38 +03:00
sphere.rs fix(web): render UI icons as SVG instead of font glyphs 2026-06-18 12:29:32 +03:00
underlay_layers.rs cargo fmt 2026-05-12 10:36:15 +03:00
wblock.rs cargo fmt 2026-05-12 10:36:15 +03:00
xadjust.rs cargo fmt 2026-05-12 10:36:15 +03:00
xattach.rs feat(f64): command layer compiles on DVec3 2026-06-24 03:51:50 +03:00
xclip.rs cargo fmt 2026-05-12 10:36:15 +03:00