const biorbd::utils::Vector3d & point(unsigned int idx) const
Return the point of a specific index.
std::shared_ptr< std::vector< biorbd::rigidbody::MeshFace > > m_faces
The faces.
A class that holds the geometry of a segment.
void addPoint(const biorbd::utils::Vector3d &node)
Add a point to the mesh.
unsigned int nbFaces()
Return the number of faces.
const biorbd::utils::Path & path() const
Return the path of the mesh file.
biorbd::rigidbody::Mesh DeepCopy() const
Deep copy of the mesh.
std::shared_ptr< std::vector< biorbd::utils::Vector3d > > m_vertex
The vertex.
const std::vector< biorbd::rigidbody::MeshFace > & faces() const
Return the faces of the mesh.
unsigned int nbVertex() const
Returns the number of vertex.
void setPath(const biorbd::utils::Path &path)
Set the path of the underlying mesh file.
void addFace(const biorbd::rigidbody::MeshFace &face)
Add a face patch to the mesh.
const biorbd::rigidbody::MeshFace & face(unsigned int idx) const
Return the face of the mesh of a specified idx.
std::shared_ptr< biorbd::utils::Path > m_pathFile
The path to the mesh file.