@pmndrs/bvh
    Preparing search index...

    Interface SdfGenerateOptions

    interface SdfGenerateOptions {
        mask?: number;
        maxDistance?: number;
        sign?: SdfSign;
        voxelsPerSubmit?: number;
    }

    Hierarchy (View Summary)

    Index
    mask?: number

    Only instances whose mask shares a bit with this count. Default all. Ignored by a generator made with rayMasks: false.

    maxDistance?: number

    Distances are clamped to this (and to -this inside): the closest-point walk skips boxes farther away, so a narrow band is cheaper. Default: none (CLOSEST_POINT_MAX_DISTANCE, 1e18).

    sign?: SdfSign

    Default 'parity'. 'unsigned' skips the inside test (an open surface's distance, a quarter of the work).

    voxelsPerSubmit?: number

    Voxels per submit: the grid is cut into slabs of whole z slices, each its own command buffer, so no single submit runs long enough for the OS to reset the GPU (Windows' TDR is about 2 s). Default 2,097,152 (a 128^3 grid in one).