pyFM.spectral.projection_utils.barycentric_to_precise

pyFM.spectral.projection_utils.barycentric_to_precise(faces, face_match, bary_coord, n_vertices=None)

Transform a set of barycentric coordinates into a precise map.

Parameters:
  • faces ((m, 3) np.ndarray) – Set of faces defined by indices of vertices.

  • face_match ((n2,) np.ndarray) – Indices of the face assigned to each point.

  • bary_coord ((n2, 3) np.ndarray) – Barycentric coordinates of each point within the face.

  • n_vertices (int, optional) – Number of vertices in the target mesh (on which faces are defined).

Returns:

precise_map – (n2, n1) precise point to point map.

Return type:

scipy.sparse.csr_matrix