cad-editor/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven a73dffdd76 fix(scene): rescale dash pattern when projecting wires to paper space
`viewport_content_wires` cloned model-space tessellations and overwrote
`points` with paper-space projections (× scale) but left `pattern_length`
and `pattern` at their model-coord values (pre-multiplied by PSLTSCALE's
1/vp_scale). The GPU then compared a paper-coord distance against a
model-coord pattern, so dashed linetypes in viewport content collapsed to
solid (a typical 9 mm paper line fell inside the first 180 mm dash).

Multiply the projected wire's pattern by the same vp scale used for the
points. Works for both PSLTSCALE on (paper-uniform dashes) and off
(dashes shrink with viewport scale).

Adds two diagnostic examples used to track this down:
  - inspect_lt: which layers/entities carry dashed linetypes
  - inspect_block: enumerate entities + linetypes inside a named block
2026-05-19 08:27:05 +03:00
..
app feat: correct viewport scale calculation with correct dimension and text scaling 2026-05-19 00:26:08 +03:00
command cargo fmt 2026-05-12 10:36:15 +03:00
entities feat: correct viewport scale calculation with correct dimension and text scaling 2026-05-19 00:26:08 +03:00
io chore: drop legacy comments and the last unused dead_code allows 2026-05-16 02:04:41 +03:00
modules fix(scene): hatch boundary + pattern precision for large-WCS drawings 2026-05-16 08:41:23 +03:00
scene fix(scene): rescale dash pattern when projecting wires to paper space 2026-05-19 08:27:05 +03:00
shaders feat(pipeline): per-instance visibility for batched hatches (Phase 4-B, step 4) 2026-05-17 20:11:28 +03:00
snap cargo fmt 2026-05-12 10:36:15 +03:00
ui feat: correct viewport scale calculation with correct dimension and text scaling 2026-05-19 00:26:08 +03:00
lib.rs feat: in-app update notice — checks GitHub releases on startup 2026-05-16 19:55:57 +03:00
linetypes.rs chore: remove dead UI helpers and orphan toolbar stubs 2026-05-16 00:04:44 +03:00
main.rs feat: in-app update notice — checks GitHub releases on startup 2026-05-16 19:55:57 +03:00
patterns.rs first commit 2026-03-22 14:56:27 +03:00
update_check.rs feat: in-app update notice — checks GitHub releases on startup 2026-05-16 19:55:57 +03:00