API

Interface IGLTFObjectModelTreeMeshesObject

Accessor tree describing the /meshes section of the glTF Object Model. Exposes per-mesh primitives (and their material refs) and the mesh-level morph-target weights array.

interface IGLTFObjectModelTreeMeshesObject {
    __array__: {
        __target__: boolean;
        primitives: {
            __array__: {
                __target__: boolean;
                material: IObjectAccessor<any, any, string | undefined>;
            };
            length: IObjectAccessor<IMeshPrimitive[], any, FlowGraphInteger>;
        };
        weights: {
            __array__: any;
            length: IObjectAccessor<number[], any, FlowGraphInteger>;
        };
    };
    length: IObjectAccessor<IMesh[], any[], FlowGraphInteger>;
}
Index
__array__: {
    __target__: boolean;
    primitives: {
        __array__: {
            __target__: boolean;
            material: IObjectAccessor<any, any, string | undefined>;
        };
        length: IObjectAccessor<IMeshPrimitive[], any, FlowGraphInteger>;
    };
    weights: {
        __array__: any;
        length: IObjectAccessor<number[], any, FlowGraphInteger>;
    };
}
length: IObjectAccessor<IMesh[], any[], FlowGraphInteger>

Number of meshes in the array.