MVE - Multi-View Environment mve-devel
|
#include <mesh_info.h>
Classes | |
struct | VertexInfo |
Per-vertex classification and adjacency information. More... | |
Public Types | |
typedef std::vector< std::size_t > | AdjacentFaces |
typedef std::vector< std::size_t > | AdjacentVertices |
enum | VertexClass { VERTEX_CLASS_SIMPLE , VERTEX_CLASS_BORDER , VERTEX_CLASS_COMPLEX , VERTEX_CLASS_UNREF } |
Vertex classification according to adjacent triangles. More... | |
Public Member Functions | |
MeshInfo (TriangleMesh::ConstPtr mesh) | |
Constructor with initialization for the given mesh. | |
MeshInfo (void) | |
Constructor without initialization. | |
VertexInfo & | at (std::size_t id) |
VertexInfo const & | at (std::size_t id) const |
void | clear (void) |
void | get_faces_for_edge (std::size_t v1, std::size_t v2, std::vector< std::size_t > *adjacent_faces) const |
Returns faces adjacent to both vertices. | |
void | initialize (TriangleMesh::ConstPtr mesh) |
Initializes the data structure for the given mesh. | |
bool | is_mesh_edge (std::size_t v1, std::size_t v2) const |
Checks for the existence of an edge between the given vertices. | |
VertexInfo & | operator[] (std::size_t id) |
VertexInfo const & | operator[] (std::size_t id) const |
std::size_t | size (void) const |
void | update_vertex (TriangleMesh const &mesh, std::size_t vertex_id) |
Updates the vertex info for a single vertex. | |
Definition at line 22 of file mesh_info.h.
typedef std::vector<std::size_t> mve::MeshInfo::AdjacentFaces |
Definition at line 39 of file mesh_info.h.
typedef std::vector<std::size_t> mve::MeshInfo::AdjacentVertices |
Definition at line 38 of file mesh_info.h.
Vertex classification according to adjacent triangles.
Definition at line 26 of file mesh_info.h.
|
inline |
Constructor without initialization.
Definition at line 93 of file mesh_info.h.
|
inline |
Constructor with initialization for the given mesh.
Definition at line 98 of file mesh_info.h.
|
inline |
Definition at line 116 of file mesh_info.h.
|
inline |
Definition at line 122 of file mesh_info.h.
|
inline |
Definition at line 134 of file mesh_info.h.
void mve::MeshInfo::get_faces_for_edge | ( | std::size_t | v1, |
std::size_t | v2, | ||
std::vector< std::size_t > * | adjacent_faces | ||
) | const |
Returns faces adjacent to both vertices.
Definition at line 172 of file mesh_info.cc.
void mve::MeshInfo::initialize | ( | TriangleMesh::ConstPtr | mesh | ) |
Initializes the data structure for the given mesh.
Definition at line 19 of file mesh_info.cc.
bool mve::MeshInfo::is_mesh_edge | ( | std::size_t | v1, |
std::size_t | v2 | ||
) | const |
Checks for the existence of an edge between the given vertices.
Definition at line 163 of file mesh_info.cc.
|
inline |
Definition at line 104 of file mesh_info.h.
|
inline |
Definition at line 110 of file mesh_info.h.
|
inline |
Definition at line 128 of file mesh_info.h.
void mve::MeshInfo::update_vertex | ( | TriangleMesh const & | mesh, |
std::size_t | vertex_id | ||
) |
Updates the vertex info for a single vertex.
It expects that the list of adjacent faces is complete (but unorderd), and recomputes adjacent face ordering, adjacent vertices and the vertex class.
Definition at line 56 of file mesh_info.cc.