4.0

4.0 | 1 rating Rate this file 22 Downloads (last 30 days) File Size: 22.16 KB File ID: #24937
image thumbnail

Curvature calculations on triangular 3D surface

by J. Ole Kaven

 

05 Aug 2009 (Updated 06 Aug 2009)

Calculate principal curvatures on a triangular mesh in 3D.

| Watch this File

File Information
Description

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.

Reference:
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

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
28 Jan 2010 Matt

Works well, however, I routinely get a "divide by zero" warning at line 65, even when using a hyperbolic paraboloid:
[x,y]=meshgrid(-3:.25:3,-3:.25:3);
tri=delaunay(x,y);
z=0.25*x.^2-0.25*y.^2;

Also, is please be more specific in defining output of which is minimum/maximum curvature, k1 or k2. Thanks!

28 Jan 2010 J. Ole Kaven

Hi Matt
k1 is the maximum principal curvature. See Chen & Schmidt equation (6).
Link to paper (requires authorization):
http://www.springerlink.com/content/y57127165032r535/

Please login to add a comment or rating.
Updates
06 Aug 2009

Directions of curvatures aren't calculated appropriately. Will post an updated version once this is implemented.

Tag Activity for this File
Tag Applied By Date/Time
mesh J. Ole Kaven 06 Aug 2009 11:17:20
3d J. Ole Kaven 06 Aug 2009 11:17:21
differential geometry J. Ole Kaven 06 Aug 2009 11:17:21
triangulation J. Ole Kaven 06 Aug 2009 11:17:21
differential geometry Atul Kumar 26 Aug 2009 17:30:55

Contact us at files@mathworks.com