## Patch Curvature

Principal, Gaussian and Mean Curvature of triangulated mesh

2.9K 次下载

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

### 引用格式

Dirk-Jan Kroon (2023). Patch Curvature (https://www.mathworks.com/matlabcentral/fileexchange/32573-patch-curvature), MATLAB Central File Exchange. 检索来源 .

##### 平台兼容性
Windows macOS Linux
##### 类别
Help CenterMATLAB Answers 中查找有关 Polygons 的更多信息

### Community Treasure Hunt

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

Start Hunting!

1.2.0.0

Fixed eigenvector calculation, sign of eigenvalues and sorting of eigenvectors

1.0.0.0
{"ft_lang_label":"__label__en","ft_lang_prob":0.62552947,"math_prob":0.93397236,"size":1345,"snap":"2023-40-2023-50","text_gpt3_token_len":360,"char_repetition_ratio":0.12304251,"word_repetition_ratio":0.0,"special_character_ratio":0.22527881,"punctuation_ratio":0.14344262,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99269783,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-12-04T16:17:23Z\",\"WARC-Record-ID\":\"<urn:uuid:f0138f44-51a1-45a0-9e48-d34ea94b7a5d>\",\"Content-Length\":\"86280\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:723f3559-5652-4a12-aaab-4a22bbf46e58>\",\"WARC-Concurrent-To\":\"<urn:uuid:bca3e283-7c65-49c6-9fb2-e01f38c98786>\",\"WARC-IP-Address\":\"23.221.59.235\",\"WARC-Target-URI\":\"https://ww2.mathworks.cn/matlabcentral/fileexchange/32573-patch-curvature?s_tid=prof_contriblnk\",\"WARC-Payload-Digest\":\"sha1:25X3P5B4G7WHLOHNT7SJPLSDT3C7C357\",\"WARC-Block-Digest\":\"sha1:Z63YP5HZKXK6SF5BSL26ZZIGX7WXI3GF\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-50/CC-MAIN-2023-50_segments_1700679100531.77_warc_CC-MAIN-20231204151108-20231204181108-00423.warc.gz\"}"}