Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Function validateFaceIndices

    • Range-check face indices on their source-typed values and widen to Uint32Array.

      The widening and the check are one function on purpose: they are only sound together. Splitting them invites a caller to coerce first and check after, which is precisely the 2^32 + 1 → 1 hole described in the module docs.

      Parameters

      • path: string
      • faces: FaceIndexSource

        The materialized source array, in whatever dtype the store used.

      • nVertices: number

        Vertex count; valid indices are [0, nVertices).

      • expectedLength: number

        3 × n_faces, from the shape Stage 1 admitted.

      Returns Uint32Array