fast-mesh-wasm
    Preparing search index...

    Interface BoundMesh

    A scene mesh bound to a THREE.Mesh by bindMesh.

    interface BoundMesh {
        mesh: MeshHandle;
        object: Mesh;
        shading: "vertex" | "fragment";
        dispose(): void;
        setEdgeSoftness(width: number): void;
        setOpacity(alpha: number): void;
    }
    Index
    object: Mesh

    The mesh to add to a THREE.Scene. Its geometry has position, normal (when the scene mesh keeps normals), uv (while it has UVs), color (while colouring is on) and an index; its matrix is the scene mesh's world matrix (matrixAutoUpdate is off). The colour attribute is normalized Uint16 RGBA: the engine's sRGB colours converted to three's linear working space.

    shading: "vertex" | "fragment"

    The shading in use: "fragment" only when asked for and the scene supports it.

    • Stops following the scene and disposes the geometry (and the material when bindMesh created it). The object stays wherever it was added. Safe to call more than once, before or after the scene mesh is removed.

      Returns void

    • Sets the opacity in [0, 1]. Below 1 the material is transparent and does not write depth. A display setting: never recorded in history.

      Parameters

      • alpha: number

      Returns void