#include <polymesh_triangulate.h>
List of all members.
Public Member Functions |
| PolyMeshTriangulate () |
void | operator() (mesh_type &mesh, double dihedral_angle_tolerance=5.0) |
Protected Types |
typedef mesh_type::vertex_handle | vertex_handle |
typedef mesh_type::math_types | math_types |
typedef math_types::vector3_type | vector3_type |
typedef math_types::real_type | real_type |
typedef mesh_type::edge_handle | edge_handle |
typedef geometry::Sphere
< math_types > | sphere_type |
typedef
OpenTissue::containers::Heap
< edge_handle, real_type > | heap_type |
Protected Member Functions |
real_type | compute_minimum_angle (vector3_type const &v0, vector3_type const &v1, vector3_type const &v2, vector3_type const &v3) |
real_type | compute_priority (vector3_type const &v0, vector3_type const &v1, vector3_type const &v2, vector3_type const &v3) |
void | update_priority (vertex_handle A, vertex_handle B, mesh_type &mesh) |
Protected Attributes |
heap_type | m_heap |
| Priority heap used to store edge candidates for edge-flips.
|
Detailed Description
template<typename mesh_type>
class OpenTissue::polymesh::PolyMeshTriangulate< mesh_type >
PolyMesh Triangulation Utility Class.
Member Typedef Documentation
template<typename mesh_type >
template<typename mesh_type >
template<typename mesh_type >
template<typename mesh_type >
template<typename mesh_type >
template<typename mesh_type >
template<typename mesh_type >
Constructor & Destructor Documentation
template<typename mesh_type >
Member Function Documentation
template<typename mesh_type >
Compute Minimum Angle. This method computes the minimum ``vertex'' angle of two neighboring triangles.
The first triangle is formed by the vertices (v0,v1,v2) and the second triangle is formed by the vertices (v0,v3,v1). Thus the edge given by (v0,v1) is shared between the two triangles.
- Parameters:
-
| v0 | The coordinates of the first vertex. |
| v1 | The coordinates of the second vertex. |
| v2 | The coordinates of the third vertex. |
| v3 | The coordinates of the fourth vertex. |
- Returns:
- The minimum vertex angle.
template<typename mesh_type >
Compute Priority. This method computes a priority measure, indicating how much the minimum vertex angle of two neighboring triangles are maximized by performaing an edge flip of the shared edge.
The first triangle is formed by the vertices (v0,v1,v2) and the second triangle is formed by the vertices (v0,v3,v1). Thus the edge given by (v0,v1) is shared between the two triangles.
- Parameters:
-
| v0 | The coordinates of the first vertex. |
| v1 | The coordinates of the second vertex. |
| v2 | The coordinates of the third vertex. |
| v3 | The coordinates of the fourth vertex. |
- Returns:
- The priority value.
template<typename mesh_type >
Re-triangulate Mesh. This method performs an iterative re-triangulation of the mesh. The triangulation is only performed on flat surfaces and is done in such a way to maximize the minimum vertex angle of all the triangles. I.e. an iterative Delaunay-like triangulation is done.
- Parameters:
-
| mesh | The mesh that should re-triangulated. |
| dihedral_angle_tolerance | The maximum allowed dihedral angle (in degrees) for an edge-flip to occur. Default value is 5. |
template<typename mesh_type >
Update Priority. This method updates the priorites of all edges that are affected by an flipped edge, specified by its two end vertices A and B.
- Parameters:
-
| A | A handle to the first vertex. |
| B | A handle to the second vertex. |
Member Data Documentation
template<typename mesh_type >
Priority heap used to store edge candidates for edge-flips.
The documentation for this class was generated from the following file:
- /home/hauberg/Dokumenter/Capture/humim-tracker-0.1/src/OpenTissue/OpenTissue/core/containers/mesh/polymesh/util/polymesh_triangulate.h