Biorbd
|
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. More... | |
biorbd::rigidbody::MeshFace | DeepCopy () const |
Deep copy of a MeshFace. More... | |
void | DeepCopy (const biorbd::rigidbody::MeshFace &other) |
Deep copy of a MeshFace into another one. More... | |
int & | operator() (unsigned int idx) |
Allows to assign/get using () More... | |
void | setFace (const std::vector< int > &pts) |
set the MeshFace from a new point More... | |
void | setFace (const biorbd::rigidbody::MeshFace &other) |
Copy the face from another MeshFace. More... | |
biorbd::utils::Vector3d | faceAsDouble () |
convert the integer nature of the face to a double More... | |
std::vector< int > | face () |
Returns the face. More... | |
Protected Attributes | |
std::shared_ptr< std::vector< int > > | m_face |
The face. | |
The face of the mesh.
Definition at line 18 of file MeshFace.h.
biorbd::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 6 of file MeshFace.cpp.
biorbd::rigidbody::MeshFace biorbd::rigidbody::MeshFace::DeepCopy | ( | ) | const |
Deep copy of a MeshFace.
Definition at line 12 of file MeshFace.cpp.
void biorbd::rigidbody::MeshFace::DeepCopy | ( | const biorbd::rigidbody::MeshFace & | other | ) |
Deep copy of a MeshFace into another one.
other | The MeshFace to copy |
Definition at line 19 of file MeshFace.cpp.
std::vector< int > biorbd::rigidbody::MeshFace::face | ( | ) |
biorbd::utils::Vector3d biorbd::rigidbody::MeshFace::faceAsDouble | ( | ) |
convert the integer nature of the face to a double
Definition at line 29 of file MeshFace.cpp.
int & biorbd::rigidbody::MeshFace::operator() | ( | unsigned int | idx | ) |
Allows to assign/get using ()
idx | The index in the vector |
Definition at line 24 of file MeshFace.cpp.
void biorbd::rigidbody::MeshFace::setFace | ( | const biorbd::rigidbody::MeshFace & | other | ) |
Copy the face from another MeshFace.
other | The other MeshFace |
Definition at line 46 of file MeshFace.cpp.
void biorbd::rigidbody::MeshFace::setFace | ( | const std::vector< int > & | pts | ) |
set the MeshFace from a new point
pts | The new point to copy |
Definition at line 41 of file MeshFace.cpp.