Biorbd
Public Member Functions | Protected Attributes | List of all members
biorbd::rigidbody::MeshFace Class Reference

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.
 

Detailed Description

The face of the mesh.

Definition at line 18 of file MeshFace.h.

Constructor & Destructor Documentation

◆ MeshFace()

biorbd::rigidbody::MeshFace::MeshFace ( const std::vector< int > &  vertex = std::vector<int>(3))

Contruct face MeshFace.

Parameters
vertexThe vertex to connect to form a face

Definition at line 6 of file MeshFace.cpp.

Member Function Documentation

◆ DeepCopy() [1/2]

biorbd::rigidbody::MeshFace biorbd::rigidbody::MeshFace::DeepCopy ( ) const

Deep copy of a MeshFace.

Returns
A deep copy of a MeshFace

Definition at line 12 of file MeshFace.cpp.

◆ DeepCopy() [2/2]

void biorbd::rigidbody::MeshFace::DeepCopy ( const biorbd::rigidbody::MeshFace other)

Deep copy of a MeshFace into another one.

Parameters
otherThe MeshFace to copy

Definition at line 19 of file MeshFace.cpp.

◆ face()

std::vector< int > biorbd::rigidbody::MeshFace::face ( )

Returns the face.

Returns
The face

Definition at line 36 of file MeshFace.cpp.

◆ faceAsDouble()

biorbd::utils::Vector3d biorbd::rigidbody::MeshFace::faceAsDouble ( )

convert the integer nature of the face to a double

Returns
The vertex index in double format

Definition at line 29 of file MeshFace.cpp.

◆ operator()()

int & biorbd::rigidbody::MeshFace::operator() ( unsigned int  idx)

Allows to assign/get using ()

Parameters
idxThe index in the vector

Definition at line 24 of file MeshFace.cpp.

◆ setFace() [1/2]

void biorbd::rigidbody::MeshFace::setFace ( const biorbd::rigidbody::MeshFace other)

Copy the face from another MeshFace.

Parameters
otherThe other MeshFace

Definition at line 46 of file MeshFace.cpp.

◆ setFace() [2/2]

void biorbd::rigidbody::MeshFace::setFace ( const std::vector< int > &  pts)

set the MeshFace from a new point

Parameters
ptsThe new point to copy

Definition at line 41 of file MeshFace.cpp.


The documentation for this class was generated from the following files: