56 #include <OpenMesh/Core/Utils/Property.hh> 79 void compute(
unsigned int _post_smoothing_iters=0);
81 void compute_edge_weights();
83 void compute_gauss_curvature();
84 void compute_mean_curvature();
85 void post_smoothing(
unsigned int _iters);
88 Scalar compute_area(VertexHandle _vh)
const;
91 Scalar area(VertexHandle _vh)
const {
92 return mesh_.property(area_, _vh);
95 Scalar gauss_curvature(VertexHandle _vh)
const {
96 return mesh_.property(gauss_curvature_, _vh);
99 Scalar mean_curvature(VertexHandle _vh)
const {
100 return mesh_.property(mean_curvature_, _vh);
103 Scalar min_curvature(VertexHandle _vh)
const {
104 const Scalar zero(0.0);
105 Scalar H = mean_curvature(_vh);
106 Scalar K = gauss_curvature(_vh);
107 return H - sqrt(std::max(zero, H*H-K));
110 Scalar max_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));
127 bool weights_computed_, area_computed_;
134 #if defined(INCLUDE_TEMPLATES) && !defined(DIFFGEOT_C) 135 #define DIFFGEO_TEMPLATES 136 #include "DiffGeoT_impl.hh" 139 #endif // DIFFGEO_HH defined
Kernel::Scalar Scalar
Scalar type.
Kernel::VertexHandle VertexHandle
Handle for referencing the corresponding item.