cad-editor/src/scene
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven da9fafc0f8 feat: introduce ViewportPane widget for unified model/paper rendering
- Remove Scene: shader::Program<Msg> impl; all GPU rendering now goes
  through ViewportPane which supports three modes:
    Model      — full model-space view (unchanged behaviour)
    PaperSheet — paper-space entities only, using the paper camera
    Paper      — model content through a specific viewport's own camera

- Add Scene helper methods (render.rs):
    build_primitive / build_paper_sheet_primitive / build_viewport_primitive
    update_viewcube_state / viewcube_mouse_interaction

- Add Scene helpers (mod.rs):
    paper_sheet_wires()        — paper entities without viewport projection
    camera_for_viewport()      — derive Camera from Viewport entity data
    model_wires_for_viewport() — model wires filtered by per-viewport frozen layers
    viewport_screen_rect()     — paper-space → pixel rect mapping

- Add paper_canvas_view() in view.rs:
    Stack of PaperSheet + one Paper widget per Viewport entity,
    positioned with Space offsets from viewport_screen_rect()

- Update VIEWPORT_WIDGET_PLAN.md: mark Steps 1–4 done, document remaining work

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-23 02:18:41 +03:00
..
pipeline fix: MSAA resolve no longer overwrites widget backgrounds 2026-04-08 12:20:47 +03:00
acad_to_truck.rs first commit 2026-03-22 14:56:27 +03:00
camera.rs Feat: implement WCS↔UCS coordinate transform pipeline 2026-04-06 14:16:06 +03:00
complex_lt.rs feat: raster image render pipeline (IMAGE command + GPU textured quad) 2026-04-06 23:19:08 +03:00
cxf.rs Feat: ROADMAP Phase 1-5 batch — trim/extend, plot scale, viewport UX, mline caps, table alignment 2026-04-03 15:31:05 +03:00
dispatch.rs first commit 2026-03-22 14:56:27 +03:00
grip.rs first commit 2026-03-22 14:56:27 +03:00
hatch_model.rs first commit 2026-03-22 14:56:27 +03:00
hatch_patterns.rs first commit 2026-03-22 14:56:27 +03:00
hit_test.rs first commit 2026-03-22 14:56:27 +03:00
image_model.rs feat: raster image render pipeline (IMAGE command + GPU textured quad) 2026-04-06 23:19:08 +03:00
mesh_model.rs first commit 2026-03-22 14:56:27 +03:00
mod.rs feat: introduce ViewportPane widget for unified model/paper rendering 2026-04-23 02:18:41 +03:00
object.rs first commit 2026-03-22 14:56:27 +03:00
properties.rs first commit 2026-03-22 14:56:27 +03:00
render.rs feat: introduce ViewportPane widget for unified model/paper rendering 2026-04-23 02:18:41 +03:00
selection.rs Split large files: ribbon widgets and scene render/selection 2026-03-22 23:07:43 +03:00
solid3d_tess.rs feat: Region and Body entity tessellation + render 2026-04-08 18:37:24 +03:00
tessellate.rs feat: Solid3D wire fallback render + Ole2Frame placeholder 2026-04-08 22:16:58 +03:00
transform.rs first commit 2026-03-22 14:56:27 +03:00
truck_tess.rs first commit 2026-03-22 14:56:27 +03:00
viewport_pane.rs feat: introduce ViewportPane widget for unified model/paper rendering 2026-04-23 02:18:41 +03:00
wire_model.rs Feat: implement CTB/STB plot style table with PDF export integration 2026-04-06 14:37:23 +03:00