cad-editor/src/scene
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan ddd0a2de16 fix(scene): greek text rect renders filled at the text's own color
Greek rects rendered through fill_tris went through the face3d 0.45
dim path; the pre-boost (color × 1/0.45) compensated only until clamp
hit at 1.0, leaving bright user colors washed out. The earlier outline
workaround dodged the dim but lost the filled box visual that AutoCAD
uses for "text lives here".

  - face3d pipeline now skips the 0.45 dim when `wire.points` is
    empty. PolyfaceMesh / PolygonMesh keep their dim (both points and
    fill_tris populated); greek and MultiLeader background-fill emit
    `points: vec![]` so they render at the literal color.
  - All three greek paths (top-level, block-defn, MultiLeader) emit a
    2-triangle filled rect instead of an outline / boosted fill.
  - Greek rects are clamped to single-line height so 5-line MText
    doesn't blow the box up to the full text-block height. MultiLeader
    emits one rect per line — keeps the per-row visual hint.
  - BatchEntry/StyleKey gain an `is_fill_only` discriminator so greek
    batches never collide with regular wire batches; otherwise the
    finalized WireModel could carry both points and fill_tris and
    defeat the pipeline-side empty-points check.

Xref fade still applies to the resolved color via the existing
`fade_toward_bg` path, so xref greek stays faded as expected.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-15 16:32:27 +03:00
..
pipeline fix(scene): greek text rect renders filled at the text's own color 2026-05-15 16:32:27 +03:00
acad_to_truck.rs fix(render): preserve f64 precision until world_offset subtraction 2026-05-12 23:47:40 +03:00
block_cache.rs fix(scene): greek text rect renders filled at the text's own color 2026-05-15 16:32:27 +03:00
camera.rs cargo fmt 2026-05-12 10:36:15 +03:00
complex_lt.rs cargo fmt 2026-05-12 10:36:15 +03:00
cxf.rs cargo fmt 2026-05-12 10:36:15 +03:00
dispatch.rs first commit 2026-03-22 14:56:27 +03:00
grip.rs cargo fmt 2026-05-12 10:36:15 +03:00
hatch_model.rs fix(hatch): more improvement on arc boundary and pattern 2026-05-10 20:29:39 +03:00
hatch_patterns.rs first commit 2026-03-22 14:56:27 +03:00
hit_test.rs cargo fmt 2026-05-12 10:36:15 +03:00
image_model.rs cargo fmt 2026-05-12 10:36:15 +03:00
mesh_model.rs first commit 2026-03-22 14:56:27 +03:00
mod.rs fix(scene): greek text rect renders filled at the text's own color 2026-05-15 16:32:27 +03:00
object.rs first commit 2026-03-22 14:56:27 +03:00
paper_canvas.rs cargo fmt 2026-05-12 10:36:15 +03:00
properties.rs refactor: deduplicate entity type name mapping 2026-04-24 01:44:33 +03:00
render.rs perf(scene): pixel-size LOD cull at zoom-out 2026-05-14 14:22:39 +03:00
selection.rs Split large files: ribbon widgets and scene render/selection 2026-03-22 23:07:43 +03:00
solid3d_tess.rs cargo fmt 2026-05-12 10:36:15 +03:00
tessellate.rs fix(scene): greek text rect renders filled at the text's own color 2026-05-15 16:32:27 +03:00
transform.rs cargo fmt 2026-05-12 10:36:15 +03:00
truck_tess.rs perf(scene): zoom-adaptive curve tolerance for top-level wires (Phase 3.2) 2026-05-15 14:07:28 +03:00
viewport_pane.rs cargo fmt 2026-05-12 10:36:15 +03:00
wire_model.rs cargo fmt 2026-05-12 10:36:15 +03:00