trimesh_gaussian_curvature

trimesh_gaussian_curvature(M)[source]

Compute the discrete gaussian curvature of a triangle mesh.

Calculates the Gaussian curvature at each vertex of a triangle mesh using the angle defect method.

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:
list[float]

The gaussian curvature values per vertex. Positive values indicate elliptic points, negative values indicate hyperbolic points, and zero values indicate parabolic or flat points.