Compute per-vertex curvatures, i.e., principle (min, max), mean, Gaussian.
More...
#include <easy3d/algo/surface_mesh_curvature.h>
Compute per-vertex curvatures, i.e., principle (min, max), mean, Gaussian.
Curvature values for boundary vertices are interpolated from their interior neighbors. Curvature values can be smoothed. For more details, please refer to the following papers:
- Discrete Differential-Geometry Operators for Triangulated 2-Manifolds. Meyer et al. 2003.
- Restricted Delaunay triangulations and normal cycle. Cohen-Steiner and Morvan. 2003.
◆ SurfaceMeshCurvature()
Constructor that initializes the curvature analysis with a given mesh.
- Parameters
-
mesh | The surface mesh to analyze. |
◆ analyze()
void analyze |
( |
unsigned int | post_smoothing_steps = 0 | ) |
|
Computes principle curvature information for each vertex.
- Parameters
-
post_smoothing_steps | Number of smoothing iterations to apply after computing curvatures. |
Upon finish, the principle curvatures are stored as vertex properties "v:curv-min" and "v:curv-max".
◆ analyze_tensor()
void analyze_tensor |
( |
unsigned int | post_smoothing_steps = 0, |
|
|
bool | two_ring_neighborhood = false ) |
Computes principle curvature information for each vertex using tensor analysis.
- Parameters
-
post_smoothing_steps | Number of smoothing iterations to apply after computing curvatures. |
two_ring_neighborhood | If true, uses a two-ring neighborhood for the analysis. |
Upon finish, the principle curvatures are stored as vertex properties "v:curv-min" and "v:curv-max".
◆ compute_gauss_curvature()
void compute_gauss_curvature |
( |
| ) |
|
Computes the Gaussian curvature.
- Attention
- This function must be called after calling to the "analyze" function.
◆ compute_max_abs_curvature()
void compute_max_abs_curvature |
( |
| ) |
|
Computes the maximum absolute curvature.
- Attention
- This function must be called after calling the "analyze" function.
◆ compute_mean_curvature()
void compute_mean_curvature |
( |
| ) |
|
Computes the mean curvature.
- Attention
- This function must be called after calling to the "analyze" function.
◆ gauss_curvature()
Returns the Gaussian curvature of a given vertex.
- Parameters
-
v | The vertex for which to return the Gaussian curvature. |
- Returns
- The Gaussian curvature.
◆ max_abs_curvature()
Returns the maximum absolute curvature of a given vertex.
- Parameters
-
v | The vertex for which to return the maximum absolute curvature. |
- Returns
- The maximum absolute curvature.
◆ max_curvature()
Returns the maximum (signed) curvature of a given vertex.
- Parameters
-
v | The vertex for which to return the maximum curvature. |
- Returns
- The maximum curvature.
◆ mean_curvature()
Returns the mean curvature of a given vertex.
- Parameters
-
v | The vertex for which to return the mean curvature. |
- Returns
- The mean curvature.
◆ min_curvature()
Returns the minimum (signed) curvature of a given vertex.
- Parameters
-
v | The vertex for which to return the minimum curvature. |
- Returns
- The minimum curvature.
The documentation for this class was generated from the following files: