33#ifndef DART_MATH_MESH_HPP_
34#define DART_MATH_MESH_HPP_
Base class for meshes.
Definition Mesh.hpp:46
const Vertices & getVertices() const
Returns the vertices of the mesh.
Definition Mesh-impl.hpp:64
Eigen::Matrix< S, 3, 1 > Vector3
Definition Mesh.hpp:51
Mesh operator+(const Mesh &other) const
Addition operator.
Definition Mesh-impl.hpp:103
Vertices mVertices
Vertices of the mesh.
Definition Mesh.hpp:94
bool isEmpty() const
Returns true if the mesh has no vertices.
Definition Mesh-impl.hpp:86
std::vector< Vector3 > Normals
Definition Mesh.hpp:53
std::size_t Index
Definition Mesh.hpp:50
virtual ~Mesh()
Destructor.
Definition Mesh-impl.hpp:43
std::vector< Vector3 > Vertices
Definition Mesh.hpp:52
bool hasVertices() const
Returns true if the mesh contains vertices.
Definition Mesh-impl.hpp:50
std::vector< Index > Indices
Definition Mesh.hpp:54
Normals mVertexNormals
Vertex normals of the mesh.
Definition Mesh.hpp:97
virtual void clear()
Clears all the vertices and vertex normals.
Definition Mesh-impl.hpp:78
Mesh()
Default constructor.
Definition Mesh-impl.hpp:138
void normalizeVertexNormals()
Normalizes the vertex normals.
Definition Mesh-impl.hpp:145
bool hasVertexNormals() const
Returns true if the mesh contains vertex normals.
Definition Mesh-impl.hpp:57
void translate(const Vector3 &translation)
Translates the mesh vertices by adding translation to the vertices.
Definition Mesh-impl.hpp:93
const Normals & getVertexNormals() const
Returns the vertex normals of the mesh.
Definition Mesh-impl.hpp:71
Mesh & operator+=(const Mesh &other)
Addition assignment operator.
Definition Mesh-impl.hpp:110
S_ S
Definition Mesh.hpp:49
Definition BulletCollisionDetector.cpp:60