Surface mesh simplification based on approximation error and fairness criteria.
More...
#include <easy3d/algo/surface_mesh_simplification.h>
|
| SurfaceMeshSimplification (SurfaceMesh *mesh) |
| Construct with mesh to be simplified.
|
|
| ~SurfaceMeshSimplification () |
| Destructor.
|
|
void | initialize (float aspect_ratio=0.0, float edge_length=0.0, unsigned int max_valence=0, float normal_deviation=0.0, float hausdorff_error=0.0) |
| Initialize with given parameters.
|
|
void | simplify (unsigned int n_vertices) |
| Simplify mesh to n vertices.
|
|
Surface mesh simplification based on approximation error and fairness criteria.
It performs incremental greedy mesh simplification based on halfedge collapses. See the following papers for more details:
- Michael Garland and Paul Seagrave Heckbert. Surface simplification using quadric error metrics. SIGGRAPH 1997.
- Leif Kobbelt et al. A general framework for mesh decimation. In Proceedings of Graphics Interface, 1998.
◆ SurfaceMeshSimplification()
Construct with mesh to be simplified.
- Parameters
-
mesh | The surface mesh to be simplified. |
◆ initialize()
void initialize |
( |
float | aspect_ratio = 0.0, |
|
|
float | edge_length = 0.0, |
|
|
unsigned int | max_valence = 0, |
|
|
float | normal_deviation = 0.0, |
|
|
float | hausdorff_error = 0.0 ) |
Initialize with given parameters.
- Parameters
-
aspect_ratio | The maximum aspect ratio of the simplified mesh. Default: 0.0. |
edge_length | The target edge length. Default: 0.0. |
max_valence | The maximum valence of vertices. Default: 0. |
normal_deviation | The maximum deviation of vertex normals. Default: 0.0. |
hausdorff_error | The maximum Hausdorff error. Default: 0.0. |
◆ simplify()
void simplify |
( |
unsigned int | n_vertices | ) |
|
Simplify mesh to n
vertices.
- Parameters
-
n_vertices | The target number of vertices. |
The documentation for this class was generated from the following files: