Biorbd Release_1.13.0
Loading...
Searching...
No Matches
BIORBD_NAMESPACE::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.
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.

Detailed Description

The face of the mesh.

Definition at line 19 of file MeshFace.h.

Constructor & Destructor Documentation

◆ MeshFace()

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 8 of file MeshFace.cpp.

Member Function Documentation

◆ DeepCopy() [1/2]

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

Deep copy of a MeshFace.

Returns
A deep copy of a MeshFace

Definition at line 11 of file MeshFace.cpp.

◆ DeepCopy() [2/2]

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

Deep copy of a MeshFace into another one.

Parameters
otherThe MeshFace to copy

Definition at line 17 of file MeshFace.cpp.

◆ face()

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

Returns the face.

Returns
The face

Definition at line 30 of file MeshFace.cpp.

◆ faceAsDouble()

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

convert the integer nature of the face to a double

Returns
The vertex index in double format

Definition at line 23 of file MeshFace.cpp.

◆ operator()()

int & rigidbody::MeshFace::operator() ( size_t idx)

Allows to assign/get using ().

Parameters
idxThe index in the vector
Returns
A reference to the vertex index

Definition at line 21 of file MeshFace.cpp.

◆ setFace() [1/2]

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

Copy the face from another MeshFace.

Parameters
otherThe other MeshFace

Definition at line 36 of file MeshFace.cpp.

◆ setFace() [2/2]

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

set the MeshFace from a new point

Parameters
ptsThe new point to copy

Definition at line 32 of file MeshFace.cpp.

Member Data Documentation

◆ m_face

std::shared_ptr<std::vector<int> > BIORBD_NAMESPACE::rigidbody::MeshFace::m_face
protected

The face.

Definition at line 71 of file MeshFace.h.


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