Skip to main content

build_scene

Function build_scene 

Source
pub fn build_scene<L>(sem: &SemanticScene, camera: Camera, layout: L) -> Scene
where L: Fn(&str) -> Option<(Vec3, Mesh)>,
Expand description

Build a renderable Scene from a SemanticScene plus a layout that maps each item id to its world position and mesh. Items the layout doesn’t recognise are skipped. Each item becomes a Node colored by item_color; its provenance and reasons ride along on the node label for inspection/tooltips.