Skip to main content

to_source

Function to_source 

Source
pub fn to_source(bundle: &SceneBundle) -> Result<String, Diagnostic>
Expand description

Converts a validated mesh snapshot into editable source with local hierarchy. Mesh buffers use the language’s Tensor[f32] contract. Transform coordinates retain f64; imported mesh coordinates round once to f32.

§Errors

Rejects invalid bundles, executable scene actions/animations, and generated source beyond the compiler’s 1 MiB limit. Nothing executes during conversion.