Simox  2.3.74.0
VirtualRobot::MathTools::TriangleFace Struct Reference

Public Member Functions

 TriangleFace ()=default
 
void flipOrientation ()
 
void set (unsigned int id1, unsigned int id2, unsigned int id3)
 
void setColor (unsigned int idColor1, unsigned int idColor2, unsigned int idColor3)
 
void setNormal (unsigned int idNormal1, unsigned int idNormal2, unsigned int idNormal3)
 
void setMaterial (unsigned int idMaterial)
 

Data Fields

unsigned int id1 {UINT_MAX}
 
unsigned int id2 {UINT_MAX}
 
unsigned int id3 {UINT_MAX}
 
unsigned int idColor1 {UINT_MAX}
 
unsigned int idColor2 {UINT_MAX}
 
unsigned int idColor3 {UINT_MAX}
 
unsigned int idNormal1 {UINT_MAX}
 
unsigned int idNormal2 {UINT_MAX}
 
unsigned int idNormal3 {UINT_MAX}
 
unsigned int idMaterial {UINT_MAX}
 
Eigen::Vector3f normal {0, 0, 0}
 

Constructor & Destructor Documentation

◆ TriangleFace()

VirtualRobot::MathTools::TriangleFace::TriangleFace ( )
default

Member Function Documentation

◆ flipOrientation()

void VirtualRobot::MathTools::TriangleFace::flipOrientation ( )
inline

Flips the orientation of the contained vertex and the normal.

◆ set()

void VirtualRobot::MathTools::TriangleFace::set ( unsigned int  id1,
unsigned int  id2,
unsigned int  id3 
)
inline

◆ setColor()

void VirtualRobot::MathTools::TriangleFace::setColor ( unsigned int  idColor1,
unsigned int  idColor2,
unsigned int  idColor3 
)
inline

◆ setMaterial()

void VirtualRobot::MathTools::TriangleFace::setMaterial ( unsigned int  idMaterial)
inline

◆ setNormal()

void VirtualRobot::MathTools::TriangleFace::setNormal ( unsigned int  idNormal1,
unsigned int  idNormal2,
unsigned int  idNormal3 
)
inline

Field Documentation

◆ id1

unsigned int VirtualRobot::MathTools::TriangleFace::id1 {UINT_MAX}

◆ id2

unsigned int VirtualRobot::MathTools::TriangleFace::id2 {UINT_MAX}

◆ id3

unsigned int VirtualRobot::MathTools::TriangleFace::id3 {UINT_MAX}

◆ idColor1

unsigned int VirtualRobot::MathTools::TriangleFace::idColor1 {UINT_MAX}

◆ idColor2

unsigned int VirtualRobot::MathTools::TriangleFace::idColor2 {UINT_MAX}

◆ idColor3

unsigned int VirtualRobot::MathTools::TriangleFace::idColor3 {UINT_MAX}

◆ idMaterial

unsigned int VirtualRobot::MathTools::TriangleFace::idMaterial {UINT_MAX}

◆ idNormal1

unsigned int VirtualRobot::MathTools::TriangleFace::idNormal1 {UINT_MAX}

◆ idNormal2

unsigned int VirtualRobot::MathTools::TriangleFace::idNormal2 {UINT_MAX}

◆ idNormal3

unsigned int VirtualRobot::MathTools::TriangleFace::idNormal3 {UINT_MAX}

◆ normal

Eigen::Vector3f VirtualRobot::MathTools::TriangleFace::normal {0, 0, 0}