trimesh_gaussian_curvature
- trimesh_gaussian_curvature(M)[source]
Compute the discrete gaussian curvature of a triangle mesh.
- Parameters:
- M(list, list)
A mesh represented by a list of vertices and a list of faces.
- Returns:
- array
The discrete gaussian curvature per vertex.
Examples
>>> import compas >>> import compas_libigl >>> from compas.datastructures import Mesh >>> mesh = Mesh.from_off(compas.get('tubemesh.off')) >>> mesh.quads_to_triangles() >>> M = mesh.to_vertices_and_faces() >>> curvature = compas_libigl.trimesh_gaussian_curvature(M)