pyFM.mesh.laplacian.fem_area_mat

pyFM.mesh.laplacian.fem_area_mat(vertices, faces, faces_areas=None)

Compute the area matrix for the mesh Laplacian using the finite elements method.

Entry (i, i) is 1/6 of the sum of the areas of the surrounding triangles. Entry (i, j) is 1/12 of the sum of the areas of the triangles using edge (i, j).

Parameters:
  • vertices ((n, 3) np.ndarray) – Coordinates of the mesh vertices.

  • faces ((m, 3) np.ndarray) – Vertex indices defining the faces.

  • faces_areas ((m,) np.ndarray, optional) – Per-face areas. Computed from the mesh if not provided.

Returns:

A – Sparse area matrix in csc format.

Return type:

(n, n) scipy.sparse.csc_matrix