63 #include <OpenMesh/Core/Utils/Property.hh>
86 void compute(
unsigned int _post_smoothing_iters=0);
88 void compute_edge_weights();
90 void compute_gauss_curvature();
91 void compute_mean_curvature();
92 void post_smoothing(
unsigned int _iters);
95 Scalar compute_area(VertexHandle _vh)
const;
98 Scalar area(VertexHandle _vh)
const {
99 return mesh_.property(area_, _vh);
102 Scalar gauss_curvature(VertexHandle _vh)
const {
103 return mesh_.property(gauss_curvature_, _vh);
106 Scalar mean_curvature(VertexHandle _vh)
const {
107 return mesh_.property(mean_curvature_, _vh);
110 Scalar min_curvature(VertexHandle _vh)
const {
111 const Scalar zero(0.0);
112 Scalar H = mean_curvature(_vh);
113 Scalar K = gauss_curvature(_vh);
114 return H - sqrt(std::max(zero, H*H-K));
117 Scalar max_curvature(VertexHandle _vh)
const {
118 const Scalar zero(0.0);
119 Scalar H = mean_curvature(_vh);
120 Scalar K = gauss_curvature(_vh);
121 return H + sqrt(std::max(zero, H*H-K));
134 bool weights_computed_, area_computed_;
141 #if defined(INCLUDE_TEMPLATES) && !defined(DIFFGEOT_C)
142 #define DIFFGEO_TEMPLATES
143 #include "DiffGeoT.cc"
146 #endif // DIFFGEO_HH defined
Kernel::Scalar Scalar
Scalar type.
Kernel::VertexHandle VertexHandle
Handle for referencing the corresponding item.