IFClite TypeScript API
    Preparing search index...

    Interface RemeshClientOptions

    @ifc-lite/geometry/remesh: re-mesh edited elements in a long-lived wasm worker, in the frame and style of the model's load (#6232 WP1).

    interface RemeshClientOptions {
        createWorker?: () => Worker;
        requestTimeoutMs?: number;
        startTimeoutMs?: number;
        wasmModule?: Module;
        wasmUrl?: string;
    }
    Index
    createWorker?: () => Worker

    Worker factory; defaults to the package's own remesh.worker.

    requestTimeoutMs?: number

    How long one request may take before the client gives up on the worker. A wasm call cannot be interrupted, so a request past this deadline kills the worker and the client; the caller creates a new one. Default 30 s. Clamped to 2^31-1 ms; 0, negative, NaN or Infinity means no deadline.

    startTimeoutMs?: number

    How long create waits for the worker to report its engine ready (wasm fetch + compile + instantiate) before it terminates the worker and rejects. Separate from requestTimeoutMs so a fail-fast request deadline does not also cut off a slow engine start. Default 120 s. Clamped to 2^31-1 ms; 0, negative, NaN or Infinity means no deadline.

    wasmModule?: Module

    A compiled engine module to instantiate instead of fetching one.

    wasmUrl?: string

    Engine binary URL, for hosts whose bundler does not rewrite wasm-bindgen's.