#include <iostream>
#include <vector>
Go to the source code of this file.
Functions | |
template<class MeshT > | |
bool | checkHalfEdge (const MeshT &mesh, const typename MeshT::HalfEdgeIndex ind_he_ab, const typename MeshT::VertexIndex ind_v_a, const typename MeshT::VertexIndex ind_v_b) |
Check if the given half-edge goes from vertex a to vertex b. | |
template<class MeshT > | |
MeshT::HalfEdgeIndex | findHalfEdge (const MeshT &mesh, const typename MeshT::VertexIndex &idx_v_0, const typename MeshT::VertexIndex &idx_v_1) |
Search for the half-edge between the two input vertices. | |
template<class MeshT > | |
MeshT::VertexIndices | getBoundaryVertices (const MeshT &mesh, const typename MeshT::VertexIndex &first, const bool verbose=false) |
Circulate around the boundary and retrieve all vertices. | |
template<class MeshT > | |
std::vector< int > | getBoundaryVertices (const MeshT &mesh, const int first, const bool verbose=false) |
Same as the other version of getBoundaryVertices with the difference that it retrieves the vertex data instead of the vertex indices. | |
template<class MeshT > | |
bool | hasFaces (const MeshT &mesh, const std::vector< typename MeshT::VertexIndices > faces, const bool verbose=false) |
Check if the faces of the mesh are equal to the reference faces (defined by a vector of vertices). | |
template<class MeshT > | |
bool | hasFaces (const MeshT &mesh, const std::vector< std::vector< int > > faces, const bool verbose=false) |
Same as the other version of hasFaces with the difference that it checks for the vertex data instead of the vertex indices. | |
template<class ContainerT > | |
bool | isCircularPermutation (const ContainerT &expected, const ContainerT &actual, const bool verbose=false) |
template<class ContainerT > | |
bool | isCircularPermutationVec (const std::vector< ContainerT > expected, const std::vector< ContainerT > actual, const bool verbose=false) |
Check if both the inner and outer input vector are a circular permutation. | |
Variables | |
const unsigned int | max_number_boundary_vertices = 100 |
const unsigned int | max_number_polygon_vertices = 100 |
bool checkHalfEdge | ( | const MeshT & | mesh, |
const typename MeshT::HalfEdgeIndex | ind_he_ab, | ||
const typename MeshT::VertexIndex | ind_v_a, | ||
const typename MeshT::VertexIndex | ind_v_b | ||
) |
Check if the given half-edge goes from vertex a to vertex b.
Definition at line 363 of file test_mesh_common_functions.h.
MeshT::HalfEdgeIndex findHalfEdge | ( | const MeshT & | mesh, |
const typename MeshT::VertexIndex & | idx_v_0, | ||
const typename MeshT::VertexIndex & | idx_v_1 | ||
) |
Search for the half-edge between the two input vertices.
Definition at line 333 of file test_mesh_common_functions.h.
MeshT::VertexIndices getBoundaryVertices | ( | const MeshT & | mesh, |
const typename MeshT::VertexIndex & | first, | ||
const bool | verbose = false |
||
) |
Circulate around the boundary and retrieve all vertices.
Definition at line 179 of file test_mesh_common_functions.h.
std::vector<int> getBoundaryVertices | ( | const MeshT & | mesh, |
const int | first, | ||
const bool | verbose = false |
||
) |
Same as the other version of getBoundaryVertices with the difference that it retrieves the vertex data instead of the vertex indices.
Definition at line 219 of file test_mesh_common_functions.h.
bool hasFaces | ( | const MeshT & | mesh, |
const std::vector< typename MeshT::VertexIndices > | faces, | ||
const bool | verbose = false |
||
) |
Check if the faces of the mesh are equal to the reference faces (defined by a vector of vertices).
Definition at line 57 of file test_mesh_common_functions.h.
bool hasFaces | ( | const MeshT & | mesh, |
const std::vector< std::vector< int > > | faces, | ||
const bool | verbose = false |
||
) |
Same as the other version of hasFaces with the difference that it checks for the vertex data instead of the vertex indices.
Definition at line 118 of file test_mesh_common_functions.h.
bool isCircularPermutation | ( | const ContainerT & | expected, |
const ContainerT & | actual, | ||
const bool | verbose = false |
||
) |
Definition at line 261 of file test_mesh_common_functions.h.
bool isCircularPermutationVec | ( | const std::vector< ContainerT > | expected, |
const std::vector< ContainerT > | actual, | ||
const bool | verbose = false |
||
) |
Check if both the inner and outer input vector are a circular permutation.
Definition at line 297 of file test_mesh_common_functions.h.
const unsigned int max_number_boundary_vertices = 100 |
Definition at line 51 of file test_mesh_common_functions.h.
const unsigned int max_number_polygon_vertices = 100 |
Definition at line 50 of file test_mesh_common_functions.h.