No BSD License  

Highlights from
Surface Curvature

4.55556

4.6 | 9 ratings Rate this file 40 Downloads (last 30 days) File Size: 1.77 KB File ID: #11168
image thumbnail

Surface Curvature

by Daniel Claxton

 

23 May 2006 (Updated 24 May 2006)

Vectorized surface curvature computation

| Watch this File

File Information
Description

[K,H,P1,P2] = surfature(X,Y,Z) returns the gaussian curvature of a surface (K), mean curvature (H), and principal curvatures (P1,P2). The inputs (X,Y,Z) are 2D arrays corresponding to the surface being analyzed.

Example
[X,Y,Z] = peaks;
[K,H,P1,P2] = surfature(X,Y,Z);
surf(X,Y,Z,H,'facecolor','interp');
set(gca,'clim',[-1,1])

MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (11)
31 May 2006 Tao Ye

i've been trying to find code to perform some computational geometry tasks, this one is very much helpful. Thank you.

07 Feb 2007 mustafa yagci  
10 Jul 2007 Michael Girard

COOL

24 Jul 2007 Giancanio Sileo

Very good tool for curvature computation.

26 Dec 2007 ewe wewe  
20 May 2008 Su Ping

cool, I'm looking for this

27 Jun 2008 krog babuz'

Hi, could you please specify what the 2D arrays for X,Y,Z actually are?

20 Nov 2009 Jason Zhang

Cool, see how it works!

29 Apr 2010 Ted Teng

By definition, H>0 for convex surface, so it seems negative Z corresponding to convex?

14 Sep 2010 Lucas Lorensi

Excellent! Is there a way to compute principal directions?

31 May 2011 vinu arasu

Could you please explain what is 2D arrays corresponding to the surface being analyzed??

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
curvature Daniel Claxton 22 Oct 2008 08:26:38
gaussian Daniel Claxton 22 Oct 2008 08:26:38
surface Daniel Claxton 22 Oct 2008 08:26:38
mean curvature Daniel Claxton 22 Oct 2008 08:26:38
curvature FH-Kaernten Wicher 11 Jan 2010 05:26:56
curvature YUANCHUN WANG 20 Jan 2010 20:12:43
curvature Ted Teng 29 Apr 2010 10:17:09
mean curvature Alessandro Mannini 14 Sep 2010 11:01:29
curvature Nilesh Powar 08 Jul 2011 16:08:19
surface helia 19 Oct 2011 14:21:18

Contact us at files@mathworks.com