cad-editor/src/ui
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 2145ab8a66 feat(render): phase 0 — render-mode pick_list + 3-flag pipeline plumbing
Replaces the binary Wireframe/Solid toggle with a 7-mode dropdown
that maps onto acadrust's `ViewportRenderMode` enum: Wireframe 2D /
Wireframe 3D / Hidden Line / Flat Shaded / Gouraud Shaded / Flat
Shaded + Edges / Gouraud Shaded + Edges. Per-tab state lives on
`DocumentTab::render_mode`; the old `SetWireframe` message forwards
to `SetRenderMode` so the ribbon + WIREFRAME / SOLID command line
keep working.

`scene::render::render_mode_flags()` translates the mode into three
pipeline-facing booleans (`face3d_fill`, `mesh_fill`,
`show_3d_edges`); `mesh_fill` / `show_3d_edges` are stubs that the
upcoming phases will consume. `Primitive` carries the derived
`view_wireframe` plus the two new fields through to `prepare()`.

`Pipeline::upload_face3d` takes a `wireframe_only` flag that drops
3DFACE quad fills (built from `key_vertices`) while keeping the
`all_wires.fill_tris` channel — that channel carries text-LOD greek
rectangles and PolyfaceMesh face triangles which must stay visible
in wireframe mode. 3DFACE edges stay on regardless of mode.

Solid3D mesh wireframe rendering, Hidden Line z-prepass, and Flat /
Gouraud shader uniforms come in phases 1–4.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 00:08:37 +03:00
..
ribbon feat(commandline): always-on keyboard capture + space submits like enter 2026-05-26 18:59:51 +03:00
about.rs chore: rename H7CAD to Open CAD Studio 2026-05-23 17:16:15 +03:00
app_menu.rs chore: rename H7CAD to Open CAD Studio 2026-05-23 17:16:15 +03:00
command_line.rs feat(commandline): autocomplete suggestions + inventory-based registry 2026-05-26 22:45:54 +03:00
dimstyle.rs cargo fmt 2026-05-12 10:36:15 +03:00
layers.rs chore: remove dead UI helpers and orphan toolbar stubs 2026-05-16 00:04:44 +03:00
layout_manager.rs cargo fmt 2026-05-12 10:36:15 +03:00
mlstyle.rs cargo fmt 2026-05-12 10:36:15 +03:00
mod.rs feat: in-app update notice — checks GitHub releases on startup 2026-05-16 19:55:57 +03:00
open_progress.rs feat(io): show loading overlay while opening CAD files 2026-05-13 09:59:07 +03:00
overlay.rs feat(render): phase 0 — render-mode pick_list + 3-flag pipeline plumbing 2026-05-27 00:08:37 +03:00
page_setup.rs cargo fmt 2026-05-12 10:36:15 +03:00
plotstyle.rs cargo fmt 2026-05-12 10:36:15 +03:00
properties.rs chore: rename H7CAD to Open CAD Studio 2026-05-23 17:16:15 +03:00
scale_popup.rs feat: correct viewport scale calculation with correct dimension and text scaling 2026-05-19 00:26:08 +03:00
shortcuts.rs cargo fmt 2026-05-12 10:36:15 +03:00
snap_popup.rs chore: rename H7CAD to Open CAD Studio 2026-05-23 17:16:15 +03:00
statusbar.rs fix(polyline): correct wide-polyline fill band arc center + add LWDISPLAY toggle 2026-05-23 07:15:26 +03:00
tablestyle.rs cargo fmt 2026-05-12 10:36:15 +03:00
textstyle.rs cargo fmt 2026-05-12 10:36:15 +03:00
update_notice.rs chore: rename H7CAD to Open CAD Studio 2026-05-23 17:16:15 +03:00