Functions | Variables
test_mesh_common_functions.h File Reference
#include <iostream>
#include <vector>
Include dependency graph for test_mesh_common_functions.h:
This graph shows which files directly or indirectly include this file:

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

Function Documentation

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.

Definition at line 363 of file test_mesh_common_functions.h.

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.

Returns:
The half-edge index if the vertex are connected and an invalid index if not.

Definition at line 333 of file test_mesh_common_functions.h.

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.

Definition at line 179 of file test_mesh_common_functions.h.

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.

Definition at line 219 of file test_mesh_common_functions.h.

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).

Definition at line 57 of file test_mesh_common_functions.h.

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.

Note:
This method assumes that the vertex data is of type 'int'.

Definition at line 118 of file test_mesh_common_functions.h.

template<class ContainerT >
bool isCircularPermutation ( const ContainerT &  expected,
const ContainerT &  actual,
const bool  verbose = false 
)

Definition at line 261 of file test_mesh_common_functions.h.

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.

Definition at line 297 of file test_mesh_common_functions.h.


Variable Documentation

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.



pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:38:48