|
MVE - Multi-View Environment mve-devel
|
Triangle mesh representation. More...
#include <mesh.h>

Public Types | |
| typedef std::shared_ptr< TriangleMesh const > | ConstPtr |
| typedef std::vector< bool > | DeleteList |
| typedef std::vector< VertexID > | FaceList |
| typedef std::vector< math::Vec3f > | NormalList |
| typedef std::shared_ptr< TriangleMesh > | Ptr |
| typedef std::vector< math::Vec2f > | TexCoordList |
Public Types inherited from mve::MeshBase | |
| typedef std::vector< math::Vec4f > | ColorList |
| typedef std::vector< float > | ConfidenceList |
| typedef std::shared_ptr< MeshBase const > | ConstPtr |
| typedef std::shared_ptr< MeshBase > | Ptr |
| typedef std::vector< float > | ValueList |
| typedef unsigned int | VertexID |
| typedef std::vector< math::Vec3f > | VertexList |
Public Member Functions | |
| virtual | ~TriangleMesh (void) |
| virtual void | clear (void) |
| Clears all mesh data. | |
| void | clear_normals (void) |
| Clears mesh normal data. | |
| void | delete_invalid_faces (void) |
| Deletes all invalid triangles, i.e. | |
| void | delete_vertices (DeleteList const &dlist) |
| Deletes marked vertices and related attributes if available. | |
| void | delete_vertices_fix_faces (DeleteList const &dlist) |
| Ptr | duplicate (void) const |
| void | ensure_normals (bool face=true, bool vertex=true) |
| Recalculates normals if normal amount is inconsistent. | |
| std::size_t | get_byte_size (void) const |
| Returns the memory consumption in bytes. | |
| ColorList & | get_face_colors (void) |
| Returns the face colors. | |
| ColorList const & | get_face_colors (void) const |
| Returns the face colors. | |
| NormalList & | get_face_normals (void) |
| Returns the face normals. | |
| NormalList const & | get_face_normals (void) const |
| Returns the face normals. | |
| FaceList & | get_faces (void) |
| Returns the triangle indices. | |
| FaceList const & | get_faces (void) const |
| Returns the triangle indices. | |
| NormalList & | get_vertex_normals (void) |
| Returns the vertex normals. | |
| NormalList const & | get_vertex_normals (void) const |
| Returns the vertex normals. | |
| TexCoordList & | get_vertex_texcoords (void) |
| Returns the vectex texture coordinates. | |
| TexCoordList const & | get_vertex_texcoords (void) const |
| Returns the vectex texture coordinates. | |
| bool | has_face_colors (void) const |
| Returns true if face color amount equals face amount. | |
| bool | has_face_normals (void) const |
| Returns true if face normal amount equals face amount. | |
| bool | has_vertex_normals (void) const |
| Returns true if vertex normal amount equals vertex amount. | |
| bool | has_vertex_texcoords (void) const |
| Returns true if texture coordinate amount equals vertex amount. | |
| void | recalc_normals (bool face=true, bool vertex=true) |
| Recalculates face and/or vertex normals. | |
Public Member Functions inherited from mve::MeshBase | |
| virtual | ~MeshBase (void) |
| ColorList & | get_vertex_colors (void) |
| Returns the vertex colors. | |
| ColorList const & | get_vertex_colors (void) const |
| Returns the vertex colors. | |
| ConfidenceList & | get_vertex_confidences (void) |
| Returns the vertex confidences. | |
| ConfidenceList const & | get_vertex_confidences (void) const |
| Returns the vertex confidences. | |
| ValueList & | get_vertex_values (void) |
| Returns the vertex values (generic attribute). | |
| ValueList const & | get_vertex_values (void) const |
| Returns the vertex values (generic attribute). | |
| VertexList & | get_vertices (void) |
| Returns the mesh vertices. | |
| VertexList const & | get_vertices (void) const |
| Returns the mesh vertices. | |
| bool | has_vertex_colors (void) const |
| Returns true if colors and vertex amount are equal. | |
| bool | has_vertex_confidences (void) const |
| Returns true if confidence amount and vertex amount are equal. | |
| bool | has_vertex_values (void) const |
| Returns true if value amount and vertex amount are equal. | |
Static Public Member Functions | |
| static Ptr | create (TriangleMesh::ConstPtr other) |
| static Ptr | create (void) |
Protected Member Functions | |
| TriangleMesh (void) | |
| Use the create() methods to instantiate a mesh. | |
Protected Member Functions inherited from mve::MeshBase | |
| MeshBase (void) | |
Protected Attributes | |
| ColorList | face_colors |
| NormalList | face_normals |
| FaceList | faces |
| NormalList | vertex_normals |
| TexCoordList | vertex_texcoords |
Protected Attributes inherited from mve::MeshBase | |
| ColorList | vertex_colors |
| ConfidenceList | vertex_confidences |
| ValueList | vertex_values |
| VertexList | vertices |
Triangle mesh representation.
The triangle mesh holds a list of vertices, per-vertex normals, colors, and confidences, a list of vertex indices for the faces and per-face normals.
| typedef std::shared_ptr<TriangleMesh const> mve::TriangleMesh::ConstPtr |
| typedef std::vector<bool> mve::TriangleMesh::DeleteList |
| typedef std::vector<VertexID> mve::TriangleMesh::FaceList |
| typedef std::vector<math::Vec3f> mve::TriangleMesh::NormalList |
| typedef std::shared_ptr<TriangleMesh> mve::TriangleMesh::Ptr |
| typedef std::vector<math::Vec2f> mve::TriangleMesh::TexCoordList |
|
inlineprotected |
|
inlinevirtual |
|
inline |
|
inlinestatic |
|
inlinestatic |
| void mve::TriangleMesh::delete_invalid_faces | ( | void | ) |
| void mve::TriangleMesh::delete_vertices | ( | DeleteList const & | dlist | ) |
| void mve::TriangleMesh::delete_vertices_fix_faces | ( | DeleteList const & | dlist | ) |
|
inline |
| void mve::TriangleMesh::ensure_normals | ( | bool | face = true, |
| bool | vertex = true |
||
| ) |
| std::size_t mve::TriangleMesh::get_byte_size | ( | void | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void mve::TriangleMesh::recalc_normals | ( | bool | face = true, |
| bool | vertex = true |
||
| ) |
|
protected |
|
protected |
|
protected |