Taos API Reference
    Preparing search index...

    Interface GltfStaticMeshData

    One renderable primitive parsed from a glTF mesh as a static (non-skinned) mesh.

    interface GltfStaticMeshData {
        mesh: Mesh;
        material: Material;
        vertexCount: number;
        center: [number, number, number];
        featureIds?: Uint32Array<ArrayBufferLike> | null;
        variantMaterials?: Map<number, Material>;
    }
    Index

    Properties

    mesh: Mesh
    material: Material
    vertexCount: number

    Vertex count of this primitive — for byte/triangle accounting by callers (e.g. the 3D-tile cache budget) without retaining CPU geometry.

    center: [number, number, number]

    RTC offset removed from this primitive's positions (see StaticPrimitiveGeometry.center); [0,0,0] unless loaded with recenter.

    featureIds?: Uint32Array<ArrayBufferLike> | null

    Per-vertex feature id (for picking), aligned to the mesh's vertices — null unless loaded with featureIds. buildDrawables pairs it with the baked world positions to build a CPU pick soup.

    variantMaterials?: Map<number, Material>

    KHR_materials_variants: variant index → material for this primitive, or undefined when it defines no mapping. See GltfStaticModel.setVariant.