# Patch Curvature

Versione 1.2.0.0 (314 KB) da
Principal, Gaussian and Mean Curvature of triangulated mesh
Aggiornato 15 gen 2014

Visualizza la licenza

This function calculates the principal curvature directions and values
of a triangulated mesh.

The function first rotates the data so the normal of the current
vertex becomes [-1 0 0], so we can describe the data by XY instead of
XYZ.
Secondly it fits a least-squares quadratic patch to the local
neighborhood of a vertex "f(x,y) = ax^2 + by^2 + cxy + dx + ey + f".
Then the eigenvectors and eigenvalues of the hessian are used to
calculate the principal, mean and gaussian curvature.

[Cmean,Cgaussian,Dir1,Dir2,Lambda1,Lambda2]=patchcurvature(FV,usethird)

inputs,
FV : A triangulated mesh (see Patch)
usethird : Use third order neighbour vertices for the curvature
fit, making it smoother but less local. true/ false (default)

outputs,
Cmean : Mean Curvature
Cgaussian : Gaussian Curvature
Dir1 : XYZ Direction of first Principal component
Dir2 : XYZ Direction of second Principal component
Lambda1 : value of first Principal component
Lambda2 : value of second Principal component

### Cita come

Dirk-Jan Kroon (2024). Patch Curvature (https://www.mathworks.com/matlabcentral/fileexchange/32573-patch-curvature), MATLAB Central File Exchange. Recuperato .

##### Compatibilità della release di MATLAB
Creato con R2011a
Compatibile con qualsiasi release
##### Compatibilità della piattaforma
Windows macOS Linux
##### Categorie
Scopri di più su Polygons in Help Center e MATLAB Answers

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versione Pubblicato Note della release
1.2.0.0

Fixed eigenvector calculation, sign of eigenvalues and sorting of eigenvectors

1.0.0.0