Function clustersToReflexiveArrays

  • Parameters

    • clusters: number[][]

      a cluster array

    Returns number[][]

    a reflexive array (like vertices_vertices)

    Description

    Clusters are arrays of arrays of indices, where every index in the inner arrays are clustered together. This method converts this array into a vertices_vertices or faces_faces style array, where for every index its list contains the set of all indices (not including itself) which are a member of the same cluster.