Geometry to be rendered with the given material

interface IMeshPrimitive {
    extensions?: Record<string, unknown>;
    extras?: Record<string, unknown>;
    attributes: {
        [name: string]: number;
    };
    indices?: number;
    material?: number;
    mode?: MeshPrimitiveMode;
    targets?: {
        [name: string]: number;
    }[];
}

Hierarchy (view full)

Properties

extensions?: Record<string, unknown>

Dictionary object with extension-specific objects

extras?: Record<string, unknown>

Application-Specific data

attributes: {
    [name: string]: number;
}

A dictionary object, where each key corresponds to mesh attribute semantic and each value is the index of the accessor containing attribute's data

Type declaration

  • [name: string]: number
indices?: number

The index of the accessor that contains the indices

material?: number

The index of the material to apply to this primitive when rendering

The type of primitives to render. All valid values correspond to WebGL enums

targets?: {
    [name: string]: number;
}[]

An array of Morph Targets, each Morph Target is a dictionary mapping attributes (only POSITION, NORMAL, and TANGENT supported) to their deviations in the Morph Target

Type declaration

  • [name: string]: number