Skip to main content

ingest_asset

Function ingest_asset 

Source
pub fn ingest_asset(
    input: &Path,
    output: &Path,
) -> Result<IngestStats, Box<dyn Error>>
Expand description

Ingest a 3D asset (OBJ / STL / GLB) into a .q42 volume via asset_bridge.

The geometry is parsed to a bounding-boxed Mesh; mesh_to_nquins emits the semantic quins (type, vertex/triangle counts, bounding box, centroid, source format) which are written to the volume — the artefact is semantically known, not just drawn. (Raw vertex/index buffers feed the GPU renderer separately — Phase 1.2, RENDERER_IMPLEMENTATION_PLAN.)