|
My Project
|
A class to deine a triangle mesh with some attributes. More...
#include <mia/mesh/triangularMesh.hh>
Public Types | |
| enum | EData { ed_none = 0 , ed_vertex = 1 , ed_normal = 2 , ed_color = 4 , ed_scale = 8 } |
| these are some flags to indicate, which data is actually available More... | |
| typedef std::shared_ptr< CTriangleMesh > | Pointer |
| typedef CTriangleMesh | type |
Public Member Functions | |
| CTriangleMesh * | clone () const __attribute__((warn_unused_result)) |
| CTriangleMesh | clone_connectivity () const |
| const color_type & | color_at (unsigned int i) const |
| CTriangleMesh () | |
| Standart constructor creates an empty mesh. | |
| CTriangleMesh (const CTriangleMesh &orig) | |
| CTriangleMesh (int n_triangles, int n_vertices) | |
| CTriangleMesh (PTrianglefield triangles, PVertexfield vertices) | |
| CTriangleMesh (PTrianglefield triangles, PVertexfield vertices, PNormalfield normals, PColorfield colors, PScalefield scales) | |
| void | evaluate_normals () |
| int | get_available_data () const |
| const void * | get_color_pointer () const |
| const void * | get_normal_pointer () const |
| const std::string & | get_sourceformat () const |
| const void * | get_triangle_pointer () const |
| const CTrianglefield & | get_triangles () const |
| const void * | get_vertex_pointer () const |
| const CVertexfield & | get_vertices () const |
| const normal_type & | normal_at (unsigned int i) const |
| const scale_type & | scale_at (unsigned int i) const |
| void | set_sourceformat (const std::string &fmt) |
| const triangle_type & | triangle_at (unsigned int i) const |
| unsigned int | triangle_size () const |
| const vertex_type & | vertex_at (unsigned int i) const |
| unsigned int | vertices_size () const |
| ~CTriangleMesh () | |
| Destructor - it releases all the data. | |
| Public Member Functions inherited from CIOData | |
| const std::string & | get_source_format () const |
| void | set_source_format (const std::string &format) |
Static Public Member Functions | |
| static const std::string | get_type_description () |
Static Public Attributes | |
| static const char * | data_descr |
A class to deine a triangle mesh with some attributes.
This class defines the representation of a triangle-mesh.
Definition at line 61 of file triangularMesh.hh.
| typedef std::shared_ptr<CTriangleMesh> CTriangleMesh::Pointer |
Definition at line 72 of file triangularMesh.hh.
| typedef CTriangleMesh CTriangleMesh::type |
Definition at line 69 of file triangularMesh.hh.
| enum CTriangleMesh::EData |
these are some flags to indicate, which data is actually available
| Enumerator | |
|---|---|
| ed_none | |
| ed_vertex | |
| ed_normal | |
| ed_color | |
| ed_scale | |
Definition at line 75 of file triangularMesh.hh.
| CTriangleMesh::CTriangleMesh | ( | ) |
Standart constructor creates an empty mesh.
Referenced by clone(), clone_connectivity(), CTriangleMesh(), and ~CTriangleMesh().
| CTriangleMesh::CTriangleMesh | ( | const CTriangleMesh & | orig | ) |
copy constructor makes a shallow copy of the mesh, i.e. the storage for triangles, vertices, normals, textur-coordinates, colors and the deformation-scale is shared between original and copy
| orig | the mesh to be copied |
References CTriangleMesh().
| CTriangleMesh::CTriangleMesh | ( | int | n_triangles, |
| int | n_vertices ) |
contruct an mesh with uninitialized data
| n_triangles | number of triangles |
| n_vertices | number of vertices |
| CTriangleMesh::CTriangleMesh | ( | PTrianglefield | triangles, |
| PVertexfield | vertices, | ||
| PNormalfield | normals, | ||
| PColorfield | colors, | ||
| PScalefield | scales ) |
creates a new mesh from given input data
| triangles | the triangle data (required) |
| vertices | the vertex data (required) |
| normals | per vertex normals - can be NULL, in this case then the normals are calculated |
| colors | per vertex color |
| scales |
| CTriangleMesh::CTriangleMesh | ( | PTrianglefield | triangles, |
| PVertexfield | vertices ) |
creates a new mesh from given input data
| triangles | the triangle data (required) |
| vertices | the vertex data (required) |
| CTriangleMesh::~CTriangleMesh | ( | ) |
Destructor - it releases all the data.
References CTriangleMesh().
| CTriangleMesh * CTriangleMesh::clone | ( | ) | const |
References CTriangleMesh().
| CTriangleMesh CTriangleMesh::clone_connectivity | ( | ) | const |
References clone_connectivity(), and CTriangleMesh().
Referenced by clone_connectivity().
| const color_type & CTriangleMesh::color_at | ( | unsigned int | i | ) | const |
| void CTriangleMesh::evaluate_normals | ( | ) |
Force the re-evaluation of the normals of the mesh. The normal at a vertex is evaluared as the area-weighted average of the normals of the triangles, the vertex is part of.
Referenced by colorize_mesh().
| int CTriangleMesh::get_available_data | ( | ) | const |
References get_available_data().
Referenced by colorize_mesh(), and get_available_data().
| const void * CTriangleMesh::get_color_pointer | ( | ) | const |
References get_color_pointer().
Referenced by get_color_pointer().
| const void * CTriangleMesh::get_normal_pointer | ( | ) | const |
References get_normal_pointer().
Referenced by get_normal_pointer().
|
inline |
Definition at line 263 of file triangularMesh.hh.
References get_sourceformat().
Referenced by get_sourceformat().
| const void * CTriangleMesh::get_triangle_pointer | ( | ) | const |
References get_triangle_pointer().
Referenced by get_triangle_pointer().
| const CTrianglefield & CTriangleMesh::get_triangles | ( | ) | const |
References get_triangles().
Referenced by get_triangles().
|
static |
References get_type_description().
Referenced by get_type_description().
| const void * CTriangleMesh::get_vertex_pointer | ( | ) | const |
References get_vertex_pointer().
Referenced by get_vertex_pointer().
| const CVertexfield & CTriangleMesh::get_vertices | ( | ) | const |
References get_vertices().
Referenced by get_vertices().
| const normal_type & CTriangleMesh::normal_at | ( | unsigned int | i | ) | const |
References normal_at().
Referenced by normal_at().
| const scale_type & CTriangleMesh::scale_at | ( | unsigned int | i | ) | const |
References scale_at().
Referenced by scale_at().
|
inline |
| fmt | set the save format of the mesh |
Definition at line 269 of file triangularMesh.hh.
| const triangle_type & CTriangleMesh::triangle_at | ( | unsigned int | i | ) | const |
References triangle_at().
Referenced by triangle_at().
| unsigned int CTriangleMesh::triangle_size | ( | ) | const |
References triangle_size().
Referenced by triangle_size().
| const vertex_type & CTriangleMesh::vertex_at | ( | unsigned int | i | ) | const |
| unsigned int CTriangleMesh::vertices_size | ( | ) | const |
References vertices_size().
Referenced by vertices_size().
|
static |
The type description provides information about the data type that is used by the plug-in system
Definition at line 67 of file triangularMesh.hh.