cad-editor/src/scene
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 97dbd80c93 feat: render active MSPACE viewport as a true 3D widget in paper space
When a paper-space viewport is activated (double-click / MSPACE command),
it is now rendered through its own dedicated PaperViewportPipeline rather
than the CPU-projection approach used for inactive viewports.

Architecture:
- PaperSheet widget (full-canvas): renders paper entities + CPU-projected
  content of all viewports *except* the active one.
- PaperViewportPane widget (Fixed w×h, positioned at viewport screen rect):
  renders the active viewport with a true 3D camera derived from the
  viewport's view_direction/view_target/view_height.

PaperViewportPipeline is a newtype of Pipeline.  Having a distinct type
gives it its own Iced storage entry (keyed by TypeId), preventing the
shared prepare() overwrite that broke the earlier per-viewport approach.

Changes:
- render.rs: PaperViewportPipeline, PaperViewportPrimitive newtypes;
  build_active_viewport_primitive(); build_paper_sheet_primitive() now
  excludes active_viewport from CPU projection.
- viewport_pane.rs: PaperViewportPane<'a> with shader::Program impl.
- mod.rs: viewport_content_wires() gains exclude_vp parameter;
  viewport_screen_rect() is no longer dead code.
- view.rs: paper_canvas_view() overlays PaperViewportPane when MSPACE
  is active.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-23 03:19:15 +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: render active MSPACE viewport as a true 3D widget in paper space 2026-04-23 03:19:15 +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: render active MSPACE viewport as a true 3D widget in paper space 2026-04-23 03:19:15 +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: render active MSPACE viewport as a true 3D widget in paper space 2026-04-23 03:19:15 +03:00
wire_model.rs Feat: implement CTB/STB plot style table with PDF export integration 2026-04-06 14:37:23 +03:00