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

    Interface ModelPart

    Represents a single logical partition or primitive segment of a 3D model. In complex multi-material models, each primitive mesh is stored as a distinct ModelPart to allow different material configurations, vertex structures, or drawing commands.

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

    Properties

    indices: number[]

    Triangle index element buffer list. Identifies the indices of vertices composing the triangular face primitives.

    materialOptions?: Record<string, any> | null

    Configuration attributes representing physical PBR material options matching StandardMaterialOptions parameters.

    name?: string

    Friendly name of this model part or submesh.

    vertices: number[]

    Interleaved floating-point vertex buffer components. Typically ordered sequentially as: Position (X, Y, Z), Normal (X, Y, Z), and UV (U, V).