@equinor/videx-3d
    Preparing search index...

    Function sampleValidGrid

    • Bilinear sample of a row-major grid that ignores hole/invalid samples: only the valid corners contribute (re-normalised by their weights). Sampling on or just outside a footprint outline therefore returns the true edge value instead of blending in a far-away fallback. When all four corners are invalid the nearest valid sample (within a small search radius) is used, falling back to fallback only if none is found nearby.

      Parameters

      • values: ArrayLike<number>
      • nx: number
      • ny: number
      • fx: number

        fractional column coordinate (worldX / cellW)

      • fz: number

        fractional row coordinate (worldZ / cellH)

      • isInvalid: (v: number) => boolean
      • fallback: number

      Returns number