32 lines
656 B
C++
32 lines
656 B
C++
#ifndef CURVATURE_H
|
|
#define CURVATURE_H
|
|
|
|
#include "my_mesh.h"
|
|
#include "quad_patch.h"
|
|
|
|
|
|
class Courbures {
|
|
private:
|
|
MyMesh &_mesh ;
|
|
|
|
public:
|
|
OpenMesh::VPropHandleT<double> vprop_K;
|
|
OpenMesh::VPropHandleT<double> vprop_H;
|
|
OpenMesh::VPropHandleT<QuadPatch> vprop_quad;
|
|
|
|
Courbures(MyMesh &mesh) : _mesh(mesh) {
|
|
_mesh.request_vertex_normals();
|
|
_mesh.update_normals();
|
|
}
|
|
|
|
void set_fixed_colors();
|
|
void normales_locales();
|
|
void get_two_neighborhood(std::vector<MyMesh::VertexHandle> &out,
|
|
MyMesh::VertexHandle vh);
|
|
QuadPatch fit_quad(MyMesh::VertexHandle vh);
|
|
void compute_KH();
|
|
void set_K_colors();
|
|
};
|
|
|
|
|
|
#endif |