pyFM.spectral.convert.mesh_FM_to_p2p

pyFM.spectral.convert.mesh_FM_to_p2p(FM_12, mesh1, mesh2, use_adj=False, subsample=None, n_jobs=None)

Wrapper for FM_to_p2p using the TriMesh class.

Parameters:
  • FM_12 ((k2, k1) np.ndarray) – Functional map in reduced basis.

  • mesh1 (TriMesh) – Source mesh for the functional map.

  • mesh2 (TriMesh) – Target mesh for the functional map.

  • use_adj (bool, optional) – Whether to use the adjoint map.

  • subsample ((2,) iterable, optional) – None or size 2 iterable ((n1’,), (n2’,)). Subsample of vertices for both meshes. If specified the p2p map is between the two subsamples.

  • n_jobs (int, optional) – Number of parallel jobs. None (default) decides automatically, -1 uses all processes.

Returns:

p2p_21 – Match vertex i on shape 2 to vertex p2p_21[i] on shape 1.

Return type:

(n2,) np.ndarray