fast-mesh-wasm
    Preparing search index...

    Interface SceneMeshViews

    MeshViews of Scene and WorkerScene, which always provide uvs.

    interface SceneMeshViews {
        colors(): Uint8Array<ArrayBufferLike> | null;
        indices(): Uint32Array;
        normals(): Float32Array<ArrayBufferLike> | null;
        positions(): Float32Array;
        uvs(): Float32Array<ArrayBufferLike> | null;
        values?(): Float32Array<ArrayBufferLike> | null;
    }

    Hierarchy (View Summary)

    Index
    • Vertex normals, 3 floats per vertex slot, or null when normals are off. For a "lazy" or "manual" mesh it can be shorter than 3 · vertex slots after a growth, until the mesh is updated (Scene.update).

      Returns Float32Array<ArrayBufferLike> | null

    • Texture coordinates, 2 floats per vertex slot, or null for a mesh without them (never given, or dropped by an operation: see docs/uv-channel.md). Optional for other SceneLike hosts; Scene and WorkerScene provide it (SceneMeshViews).

      Returns Float32Array<ArrayBufferLike> | null

    • The values the colours are made from (the colouring field's values), 1 float per vertex slot, or null without colouring. They change only at the colours' dirty slots, so they follow the colors change ranges. Optional for other SceneLike hosts; Scene and WorkerScene provide it.

      Returns Float32Array<ArrayBufferLike> | null