brepjs API Reference
    Preparing search index...

    Interface ScalarFieldHandle

    A disposable handle around a position-varying scalar field (brepjs-implicit Phase 2b). Fed to the SdfHandle modulated operators (offsetField, shellField, …) to vary an operator parameter per voxel. Like SdfHandle it is a value — the constructors return fresh fields — and dispose is mandatory (using, or [Symbol.dispose]()) to free the WASM allocation.

    interface ScalarFieldHandle {
        disposed: boolean;
        value: WasmScalarField;
        "[dispose]"(): void;
    }
    Index

    Properties

    Methods

    Properties

    disposed: boolean

    Whether the backing WASM field has been freed.

    value: WasmScalarField

    The wrapped WASM field. Throws if the handle has been disposed.

    Methods