trimesh_massmatrix

trimesh_massmatrix(M)[source]

Compute the mass matrix of a triangle mesh.

Parameters:
Mtuple[list[list[float]], list[list[int]]]

A mesh represented by a tuple of (vertices, faces) where vertices are 3D points and faces are triangles

Returns:
scipy.sparse.csc_matrix

The mass matrix in sparse format.