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