cad-editor/src/scene/model
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven f5870b011d fix(text): show text in command previews (move/copy/etc) (#316)
Command previews (MOVE, COPY, ROTATE, SCALE, STRETCH, MIRROR, ARRAY,
PASTE, INSERT) build ghost WireModels via WireModel::translated/rotated/
scaled/stretched/mirrored, but those helpers moved only `points`, never
`text_verts`, and the ghosts' glyphs were never uploaded — so text
vanished (or froze at its source) during the preview, same root cause as
the grip-drag case.

Transform text_verts alongside points in all five helpers (shared
map_text_verts, reconstructing + re-splitting the double-single world
position), and gather preview_wires' glyphs into the per-frame
preview-text buffer in the render path. This covers every command
preview automatically. The grip-drag else branch no longer sets
preview_text explicitly (the render gather handles it); the grip-slide
fast path keeps its own scene.preview_text channel (empty preview_wires,
so no double-draw).

MIRROR honours MIRRTEXT: on -> true glyph mirror via mirrored(); off ->
readable relocation via translated().

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-10 10:49:13 +03:00
..
hatch_model.rs fix(plot): correct hatch rendering in PDF / plot export 2026-07-06 12:24:10 +02:00
hatch_patterns.rs fix: address review findings on merged #293/#292 hatch+snap 2026-07-06 20:23:59 +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): draw ACIS solids as B-rep feature edges, meshes as tri edges 2026-07-04 17:57:00 +03:00
mod.rs refactor(scene): rename model_solid to solid_model 2026-06-16 11:39:31 +03:00
object.rs feat(hatch): editable pattern props + origin grip 2026-07-08 22:48:33 +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(text): show text in command previews (move/copy/etc) (#316) 2026-07-10 10:49:13 +03:00