|
Biorbd Release_1.13.0
|
A class that holds the geometry of a segment. More...
#include <Mesh.h>
Public Member Functions | |
| Mesh () | |
| Construct mesh. | |
| Mesh (const std::vector< utils::Vector3d > &other) | |
| Construct mesh from another mesh. | |
| Mesh (const std::vector< utils::Vector3d > &vertex, const std::vector< MeshFace > &faces) | |
| Construct mesh. | |
| Mesh | DeepCopy () const |
| Deep copy of the mesh. | |
| void | DeepCopy (const Mesh &other) |
| Deep copy of the mesh. | |
| void | setColor (const utils::Vector3d &color) |
| Set the patch color. | |
| utils::Vector3d & | color () const |
| Get the patch color. | |
| bool | hasMesh () const |
| Return if there is a mesh. | |
| void | addPoint (const utils::Vector3d &node) |
| Add a point to the mesh. | |
| const utils::Vector3d & | point (size_t idx) const |
| Return the point of a specific index. | |
| size_t | nbVertex () const |
| Returns the number of vertex. | |
| void | rotate (const utils::RotoTrans &rt) |
| rotateVertex Apply the RT to the vertex | |
| utils::RotoTrans & | getRotation () const |
| Get the rotation applied to the vertex. | |
| void | scale (const utils::Vector3d &scaler) |
| Scale the vertex wrt to 0, 0, 0. Warnign, this function is applied when called, meaning that if it is called after rotate, it will results in surprising results! | |
| utils::Vector3d & | getScale () const |
| Get the scaling applied to the vertex wrt to 0, 0, 0. | |
| void | addFace (const MeshFace &face) |
| Add a face patch to the mesh. | |
| void | addFace (const std::vector< int > &face) |
| Add a face patch to the mesh. | |
| const std::vector< MeshFace > & | faces () const |
| Return the faces of the mesh. | |
| const MeshFace & | face (size_t idx) const |
| Return the face of the mesh of a specified idx. | |
| size_t | nbFaces () |
| Return the number of faces. | |
| void | setPath (const utils::Path &path) |
| Set the path of the underlying mesh file. | |
| utils::Path & | path () |
| Return the path of the mesh file. | |
| const utils::Path & | path () const |
| Return the path of the mesh file. | |
Protected Attributes | |
| std::shared_ptr< utils::RotoTrans > | m_rotation |
| The rotation. | |
| std::shared_ptr< std::vector< utils::Vector3d > > | m_vertex |
| The vertex. | |
| std::shared_ptr< std::vector< MeshFace > > | m_faces |
| The faces. | |
| std::shared_ptr< utils::Path > | m_pathFile |
| The path to the mesh file. | |
| std::shared_ptr< utils::Vector3d > | m_patchColor |
| The color of faces. | |
| std::shared_ptr< utils::Vector3d > | m_scale |
| The scale. | |
| rigidbody::Mesh::Mesh | ( | const std::vector< utils::Vector3d > & | other | ) |
| rigidbody::Mesh::Mesh | ( | const std::vector< utils::Vector3d > & | vertex, |
| const std::vector< MeshFace > & | faces ) |
| void rigidbody::Mesh::addFace | ( | const MeshFace & | face | ) |
| void rigidbody::Mesh::addFace | ( | const std::vector< int > & | face | ) |
| void rigidbody::Mesh::addPoint | ( | const utils::Vector3d & | node | ) |
| utils::Vector3d & rigidbody::Mesh::color | ( | ) | const |
| rigidbody::Mesh rigidbody::Mesh::DeepCopy | ( | ) | const |
| void rigidbody::Mesh::DeepCopy | ( | const Mesh & | other | ) |
| const rigidbody::MeshFace & rigidbody::Mesh::face | ( | size_t | idx | ) | const |
| const std::vector< rigidbody::MeshFace > & rigidbody::Mesh::faces | ( | ) | const |
| utils::RotoTrans & rigidbody::Mesh::getRotation | ( | ) | const |
| utils::Vector3d & rigidbody::Mesh::getScale | ( | ) | const |
| bool rigidbody::Mesh::hasMesh | ( | ) | const |
| size_t rigidbody::Mesh::nbFaces | ( | ) |
| size_t rigidbody::Mesh::nbVertex | ( | ) | const |
| utils::Path & rigidbody::Mesh::path | ( | ) |
| const utils::Path & rigidbody::Mesh::path | ( | ) | const |
| const utils::Vector3d & rigidbody::Mesh::point | ( | size_t | idx | ) | const |
| void rigidbody::Mesh::rotate | ( | const utils::RotoTrans & | rt | ) |
| void rigidbody::Mesh::scale | ( | const utils::Vector3d & | scaler | ) |
| void rigidbody::Mesh::setColor | ( | const utils::Vector3d & | color | ) |
| void rigidbody::Mesh::setPath | ( | const utils::Path & | path | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |