R/MRatCalcpowered by RiX

RiX walkthrough 16 e

Retained 3D scenes and snapshots

Build exact 3D geometry and lower one camera view to portable Graphics.

Keep the scene, choose a view

The retained scene is right-handed and Z-up. Its coordinates and composed transforms remain exact. Realize exposes that exact primitive stream, Project records the camera approximation policy, and Snapshot lowers the projected records to core Graphics.

Runnable RiX

The browser renders the returned core Graphic. The initial mode is deliberately called wireframe: hidden-line removal is not silently approximated.

You can inspect either intermediate contract directly:

Runnable RiX

Sample an exact curve and preserve interaction identity

ParametricCurve evaluates a bounded number of exact RiX samples and retains the sampling contract in node metadata. Axes is an ordinary group of labeled Scene3D leaves. Any leaf can carry a stable id; the projected picking map connects it to every visible segment, face, point, or annotation it produced.

OrbitCamera uses the rational Cayley parameter turn, avoiding trigonometric approximation in the retained camera position. Try changing turn to 1/2, -1/3, or .Complex[:infinity] for the projective half-turn.

Runnable RiX

The first array item renders as Graphics. The second is portable interaction metadata, while the third is the reusable rix.scene3d.orbit@1 description. Pointer events themselves belong to the browser host rather than the retained scene.

Refine an exact surface within an explicit budget

ParametricSurface begins with one cell and doubles a conforming grid while its exact midpoint-deviation test exceeds tolerance. The sampling record says whether the requested tolerance was met or which bound stopped the work. Interaction values remain data: a browser may interpret them without changing the retained mesh.

Runnable RiX

The leader and offset lower to core Graphics. Collision and occlusion remain declared policies in the projected record until a renderer implements them.

Add retained lights and request a lit view

Ambient, directional, and point lights remain part of the Scene3D value. The Phase 1 lit snapshot uses deterministic flat Lambert shading and painter's ordering; it does not claim hidden-surface or shadow certification.

Runnable RiX

Preserve unknown cells in a bounded volume slice

Runnable RiX

Amber cells remain unresolved, and the gray box covers omitted display cells. The section is exact; these cell boundaries do not reconstruct surface topology.

Rotate and interpolate exact unit quaternions

Runnable RiX

The components are [3/5,0,0,4/5] with exact unit norm. This rational Cayley curve is not constant-speed interpolation; an antipodal endpoint is diagnosed.