estimate_mesh_vertex_curvatures
estimate_mesh_vertex_curvatures(verts, inds, vertex_normals=None, method=None, rings=2):
LLM Docstring
Per-vertex mean and Gaussian curvature estimated from a triangle mesh.
'quadric' (default): at each vertex, least-squares fit of the height
w = a u^2 + b u v + c v^2 + d u + e v of its rings-ring neighbours
over the tangent plane of the vertex normal, and the curvatures of that
graph at the vertex. Insensitive to triangle shape, so it stays
accurate on isosurface meshes (irregular, with occasional slivers);
converges as O(h^2) on smooth surfaces. Vertices with fewer than
five neighbours fall back to 'cotangent'.
'cotangent': the discrete operators of Meyer, Desbrun, Schroeder &
Barr (2003), see cotangent_vertex_curvatures; exact Gauss-Bonnet in
aggregate, but individual vertices are noisy on irregular meshes.
The sign of the mean curvature follows the vertex normals (given, or area-weighted face normals from the triangle winding), so it is positive on convex parts of an outward-oriented mesh.
verts:Anythe vertices, shape
(n, 3)inds:Anythe triangles, shape
(t, 3)vertex_normals:Anyoptional per-vertex normals
method:Any'quadric'or'cotangent'rings:Anyneighbourhood size for the quadric fit
:returns:tuple(mean, gaussian)