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

    Interface BuildMeshOptions

    Configuration options utilized during programmatic mesh construction via Mesh.build().

    interface BuildMeshOptions {
        addToScene?: boolean;
        cullMode?: CullMode;
        indices?: number[];
        material?: StandardMaterialOptions | Material;
        position?: Vec3 | number[];
        rotation?: Vec3 | number[];
        rotationDegrees?: Vec3 | number[];
        scale?: number | Vec3 | number[];
        topology?: GPUPrimitiveTopology;
        vertexBuffer: number[];
        vertexFormat: string[];
    }
    Index

    Properties

    addToScene?: boolean

    Automatically append the compiled mesh to the active scene graph. Defaults to true.

    cullMode?: CullMode

    Custom culling specification. Defaults to normal back-face culling for triangles.

    indices?: number[]

    Index element buffer array. If omitted, sequential indices are auto-generated.

    Material instance or configuration parameters.

    position?: Vec3 | number[]

    Initial spatial position coordinate vector.

    rotation?: Vec3 | number[]

    Initial spatial Euler rotation vector in radians.

    rotationDegrees?: Vec3 | number[]

    Initial spatial Euler rotation vector in degrees.

    scale?: number | Vec3 | number[]

    Initial spatial scale multiplier or component scale vector.

    topology?: GPUPrimitiveTopology

    GPU primitive assembly topology. Defaults to "triangle-list".

    vertexBuffer: number[]

    Raw vertex array containing sequence of attributes defined by format.

    vertexFormat: string[]

    Ordering layout identifying attributes (e.g. ['position', 'normal', 'uv']).