ModelGeometry3D: {
    indices: number[] | TypedArray;
    normals?: number[] | TypedArray;
    vertices: number[] | TypedArray;
}

Interface for a data structure of triangulated 3D Model geometry.

See setModelGeometry for more information and examples.

Type declaration

  • indices: number[] | TypedArray

    An array of indices representing the order of vertices in triangle faces.

  • Optional normals?: number[] | TypedArray

    Optional model vertex normals as flat nx, ny, nz number array.

  • vertices: number[] | TypedArray

    An array of vertex coordinates as flat x, y, z, x, y, z number array.