Skip to main content

mesh_to_nquins

Function mesh_to_nquins 

Source
pub fn mesh_to_nquins(
    mesh: &Mesh,
    asset_uri: &str,
    source_format: &str,
) -> (Vec<NQuin>, HashMap<u64, String>)
Expand description

Emit the semantic quins for a mesh asset (the asset is known, not just drawn): its type, vertex/triangle counts, bounding box, centroid, and source format — all in GEOMETRY_CONTEXT, in the one identity space. Floats use the inline-float object tag (ADR 0008); counts are raw integers. The returned lexicon maps the asset-URI / format hashes back to their strings.