博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
igllib 202_gaussian curvature
阅读量:4039 次
发布时间:2019-05-24

本文共 1212 字,大约阅读时间需要 4 分钟。

the original tutor is like:

there are some points I wanna mention:

1. the discrete Gaussian curvature formula it listed is wrong. How? listen to me explain.

According to the paper "Discrete Differential-Geometry Operators for Triangulated 2-Manifolds" section 4.2, it says

 

In addition, the code also told us about that:

#include 
#include
#include
#include
#include
#include
#include "tutorial_shared_path.h"int main(int argc, char *argv[]){ using namespace Eigen; using namespace std; MatrixXd V; MatrixXi F; igl::readOFF(TUTORIAL_SHARED_PATH "/bumpy.off",V,F); VectorXd K; // Compute integral of Gaussian curvature igl::gaussian_curvature(V,F,K); // Compute mass matrix SparseMatrix
M,Minv; igl::massmatrix(V,F,igl::MASSMATRIX_TYPE_DEFAULT,M); igl::invert_diag(M,Minv); // Divide by area to get integral average, note this line K = (Minv*K).eval(); // Compute pseudocolor MatrixXd C; igl::jet(K,true,C); // Plot the mesh with pseudocolors igl::viewer::Viewer viewer; viewer.data.set_mesh(V, F); viewer.data.set_colors(C); viewer.launch();}
2. I want to offer some material to help readers understand the geometrical meaning

你可能感兴趣的文章
Selenium-WebDriverApi接口详解
查看>>
Selenium-ActionChains Api接口详解
查看>>
Selenium-Switch与SelectApi接口详解
查看>>
Selenium-Css Selector使用方法
查看>>
Linux常用统计命令之wc
查看>>
测试必会之 Linux 三剑客之 sed
查看>>
Socket请求XML客户端程序
查看>>
Java中数字转大写货币(支持到千亿)
查看>>
Java.nio
查看>>
函数模版类模版和偏特化泛化的总结
查看>>
VMware Workstation Pro虚拟机不可用解决方法
查看>>
最简单的使用redis自带程序实现c程序远程访问redis服务
查看>>
redis学习总结-- 内部数据 字符串 链表 字典 跳跃表
查看>>
iOS 对象序列化与反序列化
查看>>
iOS 序列化与反序列化(runtime) 01
查看>>
iOS AFN 3.0版本前后区别 01
查看>>
iOS ASI和AFN有什么区别
查看>>
iOS QQ侧滑菜单(高仿)
查看>>
iOS 扫一扫功能开发
查看>>
iOS app之间的跳转以及传参数
查看>>