Skip to main content

Module scene

Module scene 

Source
Expand description

The renderer-agnostic scene store (requirements R8–R9): display objects keyed by the SAME kernel names the feature pipeline mints, with typed metadata — no userData grab-bag, no renderer objects. Rendering, picking and feature-reference display all resolve against this one map.

Slice 1 populates solids (face mesh ranges + names, edge polylines + names, vertices) from the kernel’s native display payload. Datums/sketches/widgets arrive in later slices as further [DisplayObject] kinds.

Structs§

DisplayMesh
The triangle mesh of one solid, ready for GPU upload (f32; the kernel’s f64 buffers are narrowed exactly once, here).
EdgeDisplay
One display edge: a world-space polyline plus the kernel edge identity and the typed flags the previous display layer kept per object.
FaceDisplay
One face of a solid: a contiguous triangle range of the solid mesh plus the kernel face identity.
RenderScene
The scene: insertion-ordered solids + an exact name index (R8 — the getObjectByName heuristic-scoring lookup is replaced by this map).
SolidDisplay
A displayed solid: mesh + named faces/edges/vertices + visibility.
VertexDisplay
One display vertex (kernel topology vertex).

Enums§

FaceKind
The kind of a display face (surface classification rides along when known — typed replacement for the previous app’s untyped faceKind tag).

Functions§

solid_display_from_payload
Build a SolidDisplay from the kernel’s native display payload.