|
Biorbd Release_1.13.0
|
The face of the mesh. More...
#include <MeshFace.h>
Public Member Functions | |
| MeshFace (const std::vector< int > &vertex=std::vector< int >(3)) | |
| Contruct face MeshFace. | |
| MeshFace | DeepCopy () const |
| Deep copy of a MeshFace. | |
| void | DeepCopy (const MeshFace &other) |
| Deep copy of a MeshFace into another one. | |
| int & | operator() (size_t idx) |
| Allows to assign/get using (). | |
| void | setFace (const std::vector< int > &pts) |
| set the MeshFace from a new point | |
| void | setFace (const MeshFace &other) |
| Copy the face from another MeshFace. | |
| utils::Vector3d | faceAsDouble () |
| convert the integer nature of the face to a double | |
| std::vector< int > | face () |
| Returns the face. | |
Protected Attributes | |
| std::shared_ptr< std::vector< int > > | m_face |
| The face. | |
The face of the mesh.
Definition at line 19 of file MeshFace.h.
| rigidbody::MeshFace::MeshFace | ( | const std::vector< int > & | vertex = std::vector<int>(3) | ) |
Contruct face MeshFace.
| vertex | The vertex to connect to form a face |
Definition at line 8 of file MeshFace.cpp.
| rigidbody::MeshFace rigidbody::MeshFace::DeepCopy | ( | ) | const |
Deep copy of a MeshFace.
Definition at line 11 of file MeshFace.cpp.
| void rigidbody::MeshFace::DeepCopy | ( | const MeshFace & | other | ) |
Deep copy of a MeshFace into another one.
| other | The MeshFace to copy |
Definition at line 17 of file MeshFace.cpp.
| std::vector< int > rigidbody::MeshFace::face | ( | ) |
| utils::Vector3d rigidbody::MeshFace::faceAsDouble | ( | ) |
convert the integer nature of the face to a double
Definition at line 23 of file MeshFace.cpp.
| int & rigidbody::MeshFace::operator() | ( | size_t | idx | ) |
Allows to assign/get using ().
| idx | The index in the vector |
Definition at line 21 of file MeshFace.cpp.
| void rigidbody::MeshFace::setFace | ( | const MeshFace & | other | ) |
Copy the face from another MeshFace.
| other | The other MeshFace |
Definition at line 36 of file MeshFace.cpp.
| void rigidbody::MeshFace::setFace | ( | const std::vector< int > & | pts | ) |
set the MeshFace from a new point
| pts | The new point to copy |
Definition at line 32 of file MeshFace.cpp.
|
protected |
The face.
Definition at line 71 of file MeshFace.h.