@pmndrs/bvh
    Preparing search index...

    Function meshGeometryHash

    • A 64-bit hash (two u32s, never both 0) of a mesh's positions (their bits) and indices (their values, so 16- and 32-bit indices hash alike): what a tree written with its geometry records, so that loading it next to other geometry is refused. A check against mistakes, not a cryptographic one. Triangle flags and materials are not part of it.

      Parameters

      • geometry: Pick<MeshInput, "positions" | "indices">

      Returns [number, number]