Skip to main content

rasterize

Function rasterize 

Source
pub fn rasterize(
    scene: &SceneGraph3D,
    camera: &Camera,
    cols: u16,
    rows: u16,
) -> CellGrid
Available on crate feature raster only.
Expand description

Rasterize scene under camera into a cols x rows CellGrid (Task 3): near-plane-clip, painter’s depth-sort, rasterize faces, struts and node discs into a braille 2x4 subcell buffer via the shared grid::draw_scene core, compose glyphs, then stamp the scene’s labeled scalars across the top rows as literal glyph cells.

The banner stamp is the Global Constraint (plan §Global Constraints, PHASE-R-MAP §4): every labeled scalar an instrument computes must appear as literal text somewhere in the CellGrid — the deck’s own PHI = … r = … — invariant under zoom conservation banner (topology-deck.html:430-433) is the canonical case. A scene with empty metadata stamps nothing, so the pure-geometry tests are unaffected.

Pure function of (scene, camera, cols, rows) — byte-exact golden-testable.