|
DART 6.12.2
|
Base class for meshes. More...
#include <Mesh.hpp>
Public Types | |
| using | S = S_ |
| using | Index = std::size_t |
| using | Vector3 = Eigen::Matrix< S, 3, 1 > |
| using | Vertices = std::vector< Vector3 > |
| using | Normals = std::vector< Vector3 > |
| using | Indices = std::vector< Index > |
Public Member Functions | |
| virtual | ~Mesh () |
| Destructor. | |
| bool | hasVertices () const |
| Returns true if the mesh contains vertices. | |
| bool | hasVertexNormals () const |
| Returns true if the mesh contains vertex normals. | |
| const Vertices & | getVertices () const |
| Returns the vertices of the mesh. | |
| const Normals & | getVertexNormals () const |
| Returns the vertex normals of the mesh. | |
| virtual void | clear () |
| Clears all the vertices and vertex normals. | |
| bool | isEmpty () const |
| Returns true if the mesh has no vertices. | |
| void | translate (const Vector3 &translation) |
Translates the mesh vertices by adding translation to the vertices. | |
| Mesh | operator+ (const Mesh &other) const |
| Addition operator. | |
| Mesh & | operator+= (const Mesh &other) |
| Addition assignment operator. | |
Protected Member Functions | |
| Mesh () | |
| Default constructor. | |
| void | normalizeVertexNormals () |
| Normalizes the vertex normals. | |
Protected Attributes | |
| Vertices | mVertices |
| Vertices of the mesh. | |
| Normals | mVertexNormals |
| Vertex normals of the mesh. | |
Base class for meshes.
| using dart::math::Mesh< S_ >::Index = std::size_t |
| using dart::math::Mesh< S_ >::Indices = std::vector<Index> |
| using dart::math::Mesh< S_ >::Normals = std::vector<Vector3> |
| using dart::math::Mesh< S_ >::S = S_ |
| using dart::math::Mesh< S_ >::Vector3 = Eigen::Matrix<S, 3, 1> |
| using dart::math::Mesh< S_ >::Vertices = std::vector<Vector3> |
|
virtual |
Destructor.
|
protected |
Default constructor.
|
virtual |
Clears all the vertices and vertex normals.
Reimplemented in dart::math::TriMesh< S_ >.
Returns the vertex normals of the mesh.
| const Mesh< S >::Vertices & dart::math::Mesh< S >::getVertices | ( | ) | const |
Returns the vertices of the mesh.
| bool dart::math::Mesh< S >::hasVertexNormals | ( | ) | const |
Returns true if the mesh contains vertex normals.
| bool dart::math::Mesh< S >::hasVertices | ( | ) | const |
Returns true if the mesh contains vertices.
| bool dart::math::Mesh< S >::isEmpty | ( | ) | const |
Returns true if the mesh has no vertices.
|
protected |
Normalizes the vertex normals.
Addition operator.
Addition assignment operator.
| void dart::math::Mesh< S >::translate | ( | const Vector3 & | translation | ) |
Translates the mesh vertices by adding translation to the vertices.
|
protected |
Vertex normals of the mesh.
|
protected |
Vertices of the mesh.