brepjs API Reference
    Preparing search index...

    Interface OcctWasmModule

    Emscripten Module interface for occt-wasm.

    Provides access to heap views (for reading mesh data from pointers) and Embind vector constructors.

    interface OcctWasmModule {
        HEAP32: Int32Array;
        HEAPF32: Float32Array;
        HEAPU32: Uint32Array;
        OcctKernel: new () => OcctKernelWasm;
        VectorDouble: new () => EmVectorDouble;
        VectorInt: new () => EmVectorInt;
        VectorString: new () => EmVectorString;
        VectorUint32: new () => EmVectorUint32;
        getExceptionMessage(ex: unknown): [string, string];
    }
    Index

    Properties

    HEAP32: Int32Array
    HEAPF32: Float32Array

    Float32 view of WASM linear memory.

    HEAPU32: Uint32Array

    Uint32 view of WASM linear memory.

    OcctKernel: new () => OcctKernelWasm

    OcctKernel constructor (Embind class).

    VectorDouble: new () => EmVectorDouble

    Embind std::vector constructor.

    VectorInt: new () => EmVectorInt

    Embind std::vector constructor.

    VectorString: new () => EmVectorString

    Embind std::vectorstd::string constructor.

    VectorUint32: new () => EmVectorUint32

    Embind std::vector<uint32_t> constructor.

    Methods

    • Extract error message from a C++ exception (requires -sEXPORT_EXCEPTION_HANDLING_HELPERS).

      Parameters

      • ex: unknown

      Returns [string, string]