pyFM.mesh.geometry.heat_geodmat¶
- pyFM.mesh.geometry.heat_geodmat(vertices, faces, normals, A, W, t=0.001, face_areas=None, vert_areas=None, batch_size=None, verbose=False)¶
Compute geodesic distances between all pairs of vertices using the Heat Method.
- Parameters:
vertices ((n, 3) np.ndarray) – Coordinates of the vertices.
faces ((m, 3) np.ndarray) – Triangular faces defined by 3 vertex indices.
normals ((m, 3) np.ndarray) – Per-face normals.
A ((n, n) scipy.sparse) – Area matrix of the mesh, so that the Laplacian L = A^-1 W.
W ((n, n) scipy.sparse) – Stiffness matrix, so that the Laplacian L = A^-1 W.
t (float, optional) – Time parameter for which to solve the heat equation.
face_areas ((m,) np.ndarray, optional) – Per-face areas, for faster computation.
vert_areas ((n,) np.ndarray, optional) – Per-vertex areas, for faster computation.
batch_size (int, optional) – Size of batches to use for computation. None means the full shape.
verbose (bool, optional) – Whether to display a progress bar.
- Returns:
distmat – Geodesic distance matrix.
- Return type:
(n, n) np.ndarray