ReactPhysics3D  v0.10.1
C++ Physics engine library
reactphysics3d::QHHalfEdgeStructure::Face Struct Reference

A face. More...

#include <include/reactphysics3d/utils/quickhull/QHHalfEdgeStructure.h>

Public Member Functions

 Face (MemoryAllocator &allocator)
 Constructor.
 
const VertexgetVertex () const
 Return a vertex of the face.
 
void recalculateFace (const Array< Vector3 > &points)
 Recalculate the face centroid and normal to better fit its new vertices (using Newell method)
 
std::string verticesString () const
 Return a string with the vertices of the face.
 
bool isTriangle ()
 Return true if the face is a triangle.
 
bool isValid ()
 Return true if the face structure is valid (for debugging purpose)
 

Public Attributes

FacenextFace
  Pointer to the next face
 
FacepreviousFace
  Pointer to the previous face
 
Edgeedge
 One half-edge of the face.
 
Vector3 normal
  Face normal
 
Vector3 centroid
 Center of the face (average of the face vertices)
 
decimal area
 Area of the face.
 
Array< uint32 > conflictPoints
 Array with some remaining points visible from this face that need to be processed.
 

Detailed Description

A face.


The documentation for this struct was generated from the following file: