Skip to main content

to_sources

Function to_sources 

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

Converts a scene bundle into a bounded editable source project.

main retains transforms, materials, and Parent links; each embedded triangle mesh lives in a private geometry_N module that exports create() -> Res[Mesh, DataError]. This keeps individual source files readable and avoids relaxing compiler limits for large imported assets.

§Errors

Rejects more than 64 generated modules, over one MiB of aggregate source, or any generated project that cannot initialize and render in the native language runtime.