fast-mesh-wasm
    Preparing search index...

    Interface AddMeshOptions

    Options of Scene.addMesh.

    interface AddMeshOptions {
        mode?: UpdateMode;
        normals?: boolean;
        origin?: readonly [number, number, number];
        uvs?: Float32Array<ArrayBufferLike> | readonly number[];
    }
    Index
    mode?: UpdateMode

    Defaults to "eager".

    normals?: boolean

    Keep vertex normals up to date. Defaults to true.

    origin?: readonly [number, number, number]

    The point subtracted from every position before it is stored as f32. Defaults to the bounding-box centre, which keeps local coordinates small.

    uvs?: Float32Array<ArrayBufferLike> | readonly number[]

    Texture coordinates: 2 finite values per vertex, stored as f32 and read back with views(mesh).uvs(). Without them the mesh has no UV channel and pays nothing. Every operation keeps them aligned or drops them, undoably; see docs/uv-channel.md. Weld keeps seams apart.