cad-editor/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 5bd683cf4e feat(mline): GPU-dash multiline elements with shared A-type alignment
MLINE dashed elements were fully CPU-expanded (apply_along) — one wire per
dash — to keep the parallel lines in phase. Move pure-dash elements onto the
GPU dash shader and end-align every element to the multiline's centre-line so
they share one interior phase.

- wire_distances now accumulates arc-length from the double-single (high+low)
  points, so the dash phase stays precise at UTM coordinates. f32-high-only
  deltas quantised ~0.1 there and drifted the parallel lines apart — the
  original reason MLINE dashes were CPU-side.
- New WireModel.dash_align_end carries a shared begin/end dash length. The
  shader uses it as align_end for every parallel element (the interior phase
  depends on align_end, not the wire's own length) while align_total stays the
  element's own length, so each still ends on a dash at its own endpoint.
- MLINE tessellation derives that length once from the centre-line, routes
  pure dash/space/dot elements to the GPU pattern and text-bearing elements to
  apply_along.
- apply_along gained an "A"-type mode (shared reference length): a solid
  begin/end dash and a phased interior, so its dashes — and embedded text —
  line up with the GPU-dashed sibling elements instead of tiling from start.

Pure-dash MLINEs now cost one WireModel + pattern per element instead of N
segments; single (non-MLINE) entities keep the from-start tiling unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-17 02:59:11 +03:00
..
app feat(mline): GPU-dash multiline elements with shared A-type alignment 2026-07-17 02:59:11 +03:00
entities feat(mline): GPU-dash multiline elements with shared A-type alignment 2026-07-17 02:59:11 +03:00
io fix(linetype): route placeholder-complex linetypes to the dash path 2026-07-17 02:58:59 +03:00
modules feat(mline): GPU-dash multiline elements with shared A-type alignment 2026-07-17 02:59:11 +03:00
plugin fix(plugin): upgrade a loaded plugin in place instead of failing on a locked binary 2026-07-15 11:35:10 -07:00
scene feat(mline): GPU-dash multiline elements with shared A-type alignment 2026-07-17 02:59:11 +03:00
shaders feat(web): render hatches on WebGL2 via a texture-backed renderer 2026-07-14 00:53:51 +03:00
ui feat(annotative): synthesize per-object contexts + editable UI 2026-07-13 22:38:29 +03:00
cli.rs feat(open): open drawings in the running editor 2026-07-15 15:18:16 +03:00
command.rs feat(commands): step POLYSOLID (select polyline, then width + height) 2026-07-16 14:47:45 +03:00
config.rs feat(ui): ribbon collapse-mode selector + start-page recent controls 2026-07-06 01:06:01 +03:00
lib.rs feat(ui): ribbon collapse-mode selector + start-page recent controls 2026-07-06 01:06:01 +03:00
main.rs feat(open): open drawings in the running editor 2026-07-15 15:18:16 +03:00
par.rs feat(wasm): sequential rayon shim for the web build 2026-06-16 17:11:20 +03:00
patreon.rs feat(supporters): merge hand-maintained supporters, rank by amount 2026-07-08 00:32:12 +03:00
snap.rs fix(snap): Intersection requires a real 3D meeting, not a plan crossing (#335) 2026-07-10 13:05:48 +03:00
sys.rs fix(web): paste clipboard text into the TEXT / MText editors 2026-06-20 17:05:02 +03:00