brepjs API Reference
    Preparing search index...

    Interface BrepkitHandle

    Typed wrapper around a brepkit u32 arena handle.

    brepjs passes these around as opaque KernelShape. The adapter extracts the .id and .type when calling back into brepkit WASM.

    interface BrepkitHandle {
        __brepkit: true;
        id: number;
        type: ShapeType;
        delete(): void;
        HashCode(upperBound: number): number;
        IsNull(): boolean;
    }
    Index

    Properties

    __brepkit: true
    id: number

    Raw u32 arena index.

    type: ShapeType

    Methods

    • No-op -- arena-based allocation doesn't free individual handles. Present for compatibility with OCCT's wasm-bindgen .delete() convention.

      Returns void

    • OCCT-compatible hash code derived from the arena handle id.

      Parameters

      • upperBound: number

      Returns number