IFClite TypeScript API
    Preparing search index...

    @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).

    Index
    • get alive(): boolean

      False once disposed or once its worker failed; create a new client then.

      Returns boolean

    • Terminate the worker and reject whatever is still in flight. Idempotent.

      Returns void

    • Mesh request.targets from request.buffer. The buffer's memory is TRANSFERRED to the worker when it spans a whole ArrayBuffer, so the caller must not read it afterwards.

      Parameters

      Returns Promise<RemeshResult>

    • Change the load toggles; applies to every request sent after this call.

      Parameters

      Returns void

    • The style wire a whole-file pre-pass resolves for source, for a model whose load did not keep one. The source is COPIED to the worker (the caller's model still owns it), and the pre-pass cache is released after.

      Parameters

      • source: Uint8Array

      Returns Promise<StyleWire>