Biorbd
|
A class that holds the geometry of a segment. More...
#include <Mesh.h>
Public Member Functions | |
Mesh () | |
Construct mesh. | |
Mesh (const std::vector< biorbd::utils::Vector3d > &other) | |
Construct mesh from another mesh. More... | |
Mesh (const std::vector< biorbd::utils::Vector3d > &vertex, const std::vector< biorbd::rigidbody::MeshFace > &faces) | |
Construct mesh. More... | |
biorbd::rigidbody::Mesh | DeepCopy () const |
Deep copy of the mesh. More... | |
void | DeepCopy (const biorbd::rigidbody::Mesh &other) |
Deep copy of the mesh. More... | |
void | addPoint (const biorbd::utils::Vector3d &node) |
Add a point to the mesh. More... | |
const biorbd::utils::Vector3d & | point (unsigned int idx) const |
Return the point of a specific index. More... | |
unsigned int | nbVertex () const |
Returns the number of vertex. More... | |
void | addFace (const biorbd::rigidbody::MeshFace &face) |
Add a face patch to the mesh. More... | |
void | addFace (const std::vector< int > &face) |
Add a face patch to the mesh. More... | |
const std::vector< biorbd::rigidbody::MeshFace > & | faces () const |
Return the faces of the mesh. More... | |
const biorbd::rigidbody::MeshFace & | face (unsigned int idx) const |
Return the face of the mesh of a specified idx. More... | |
unsigned int | nbFaces () |
Return the number of faces. More... | |
void | setPath (const biorbd::utils::Path &path) |
Set the path of the underlying mesh file. More... | |
const biorbd::utils::Path & | path () const |
Return the path of the mesh file. More... | |
Protected Attributes | |
std::shared_ptr< std::vector< biorbd::utils::Vector3d > > | m_vertex |
The vertex. | |
std::shared_ptr< std::vector< biorbd::rigidbody::MeshFace > > | m_faces |
The faces. | |
std::shared_ptr< biorbd::utils::Path > | m_pathFile |
The path to the mesh file. | |
biorbd::rigidbody::Mesh::Mesh | ( | const std::vector< biorbd::utils::Vector3d > & | other | ) |
biorbd::rigidbody::Mesh::Mesh | ( | const std::vector< biorbd::utils::Vector3d > & | vertex, |
const std::vector< biorbd::rigidbody::MeshFace > & | faces | ||
) |
void biorbd::rigidbody::Mesh::addFace | ( | const biorbd::rigidbody::MeshFace & | face | ) |
void biorbd::rigidbody::Mesh::addFace | ( | const std::vector< int > & | face | ) |
void biorbd::rigidbody::Mesh::addPoint | ( | const biorbd::utils::Vector3d & | node | ) |
biorbd::rigidbody::Mesh biorbd::rigidbody::Mesh::DeepCopy | ( | ) | const |
void biorbd::rigidbody::Mesh::DeepCopy | ( | const biorbd::rigidbody::Mesh & | other | ) |
const biorbd::rigidbody::MeshFace & biorbd::rigidbody::Mesh::face | ( | unsigned int | idx | ) | const |
const std::vector< biorbd::rigidbody::MeshFace > & biorbd::rigidbody::Mesh::faces | ( | ) | const |
unsigned int biorbd::rigidbody::Mesh::nbFaces | ( | ) |
unsigned int biorbd::rigidbody::Mesh::nbVertex | ( | ) | const |
const biorbd::utils::Path & biorbd::rigidbody::Mesh::path | ( | ) | const |
const biorbd::utils::Vector3d & biorbd::rigidbody::Mesh::point | ( | unsigned int | idx | ) | const |
void biorbd::rigidbody::Mesh::setPath | ( | const biorbd::utils::Path & | path | ) |