Function to calculate the principal curvatures on a triangular mesh. Approximations of curvature are based on local (N=1) neighborhood elements and vertices.
Note: Directions of curvatures aren't calculated appropriately. Will post an updated version once this is implemented.
Note that calculations at vertices with few adjacent triangles, and hence few adjacent vertices, are expanded to a greater neighborhood.
1) Chen and Schmitt (1992) Intrinsic surface properties from surface triangulation
2) Dong et al. (2005) Curvature estimation on triangular mesh, JZUS
This code makes use of routines: buildInverseTriangualtion.m & removeDO.m
initially written by: David Gringas. He is gratefully acknowledged
I am very happy to find for the first time curvature estimation works on triangular meshes on matlab. Therefore I am very interested in the corrected version of the file.
Let me know when you have such a version, or, do you know an other file doing the same job than yours without this little bug?
k1 is the maximum principal curvature. See Chen & Schmidt equation (6).
Link to paper (requires authorization):
Works well, however, I routinely get a "divide by zero" warning at line 65, even when using a hyperbolic paraboloid:
Also, is please be more specific in defining output of which is minimum/maximum curvature, k1 or k2. Thanks!
Directions of curvatures aren't calculated appropriately. Will post an updated version once this is implemented.
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.