Nano WebGPU API - v0.11.0
    Preparing search index...

    Interface ModelData

    Container holding the aggregate geometry data and material configurations parsed from a 3D asset file.

    interface ModelData {
        indices: number[];
        materialOptions?: Record<string, any> | null;
        parts?: ModelPart[];
        vertices: number[];
    }
    Index

    Properties

    indices: number[]

    Triangle element index buffer for single-part models.

    materialOptions?: Record<string, any> | null

    Base material parameters and configuration mapping for single-part models.

    parts?: ModelPart[]

    Collection of distinct geometric partitions that form this model. When defined, these parts represent multiple material/mesh subsets.

    vertices: number[]

    Interleaved vertex data for single-part or legacy geometric representations. Typically contains Position (X, Y, Z), Normal (X, Y, Z), and Texture Coordinate (U, V) components.