cad-editor/examples
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
..
dump_index_stats.rs fix(quadtree): split() on internal node was orphaning the entire subtree 2026-05-17 19:28:57 +03:00
find_raster.rs chore: expose lib target + open-path profiling examples 2026-05-13 23:02:54 +03:00
inspect_anno.rs feat: correct viewport scale calculation with correct dimension and text scaling 2026-05-19 00:26:08 +03:00
inspect_block.rs fix(scene): rescale dash pattern when projecting wires to paper space 2026-05-19 08:27:05 +03:00
inspect_insert.rs chore: expose lib target + open-path profiling examples 2026-05-13 23:02:54 +03:00
inspect_lt.rs fix(scene): rescale dash pattern when projecting wires to paper space 2026-05-19 08:27:05 +03:00
inspect_polyline.rs feat(io): drop parser-garbage entities at load time 2026-05-13 10:00:16 +03:00
inspect_viewports.rs fix(scene): viewport auto-fit fallback + f64-precision projection 2026-05-16 19:32:36 +03:00
time_open.rs chore: expose lib target + open-path profiling examples 2026-05-13 23:02:54 +03:00
xref_states.rs perf(scene): frustum-cull wires using camera view AABB 2026-05-14 13:52:04 +03:00