|
Easy3D 2.6.1
|
Triangulate a polygonal mesh into a pure triangle mesh. More...
#include <easy3d/algo/surface_mesh_triangulation.h>
Public Types | |
| enum | Objective { MIN_AREA , MAX_ANGLE } |
| Triangulation objective: find the triangulation that minimizes the sum of squared triangle areas, or the one that maximizes the minimum angle. | |
Public Member Functions | |
| SurfaceMeshTriangulation (SurfaceMesh *mesh) | |
| Construct with the surface mesh to be triangulated. | |
| void | triangulate (Objective obj=MIN_AREA) |
| Triangulate all faces. | |
| void | triangulate (SurfaceMesh::Face f, Objective obj=MIN_AREA) |
| Triangulate a particular face. | |
Triangulate a polygonal mesh into a pure triangle mesh.
Triangulate n-gons into n-2 triangles. Find the triangulation that minimizes the sum of squared triangle areas. See the following paper for more details:
|
explicit |
Construct with the surface mesh to be triangulated.
| mesh | The surface mesh to be triangulated. |
| void triangulate | ( | Objective | obj = MIN_AREA | ) |
Triangulate all faces.
| obj | The triangulation objective. Default is MIN_AREA. |
| void triangulate | ( | SurfaceMesh::Face | f, |
| Objective | obj = MIN_AREA ) |
Triangulate a particular face.
| f | The face to be triangulated. |
| obj | The triangulation objective. Default is MIN_AREA. |