Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
ConvexHullBuilder::Face Class Reference

Class that holds the information of one face. More...

#include <ConvexHullBuilder.h>

Inheritance diagram for ConvexHullBuilder::Face:
NonCopyable

Public Member Functions

JPH_OVERRIDE_NEW_DELETE ~Face ()
 Destructor. More...
 
void Initialize (int inIdx0, int inIdx1, int inIdx2, const Vec3 *inPositions)
 Initialize a face with three indices. More...
 
void CalculateNormalAndCentroid (const Vec3 *inPositions)
 Calculates the centroid and normal for this face. More...
 
bool IsFacing (Vec3Arg inPosition) const
 Check if face inFace is facing inPosition. More...
 
- Public Member Functions inherited from NonCopyable
 NonCopyable ()=default
 
 NonCopyable (const NonCopyable &)=delete
 
void operator= (const NonCopyable &)=delete
 

Public Attributes

Vec3 mNormal
 Normal of this face, length is 2 times area of face. More...
 
Vec3 mCentroid
 Center of the face. More...
 
ConflictList mConflictList
 Positions associated with this edge (that are closest to this edge). The last position in the list is the point that is furthest away from the face. More...
 
EdgemFirstEdge = nullptr
 First edge of this face. More...
 
float mFurthestPointDistanceSq = 0.0f
 Squared distance of furthest point from the conflict list to the face. More...
 
bool mRemoved = false
 Flag that indicates that face has been removed (face will be freed later) More...
 

Detailed Description

Class that holds the information of one face.

Constructor & Destructor Documentation

◆ ~Face()

Member Function Documentation

◆ CalculateNormalAndCentroid()

void ConvexHullBuilder::Face::CalculateNormalAndCentroid ( const Vec3 inPositions)

Calculates the centroid and normal for this face.

◆ Initialize()

void ConvexHullBuilder::Face::Initialize ( int  inIdx0,
int  inIdx1,
int  inIdx2,
const Vec3 inPositions 
)

Initialize a face with three indices.

◆ IsFacing()

bool ConvexHullBuilder::Face::IsFacing ( Vec3Arg  inPosition) const
inline

Check if face inFace is facing inPosition.

Member Data Documentation

◆ mCentroid

Vec3 ConvexHullBuilder::Face::mCentroid

Center of the face.

◆ mConflictList

ConflictList ConvexHullBuilder::Face::mConflictList

Positions associated with this edge (that are closest to this edge). The last position in the list is the point that is furthest away from the face.

◆ mFirstEdge

Edge* ConvexHullBuilder::Face::mFirstEdge = nullptr

First edge of this face.

◆ mFurthestPointDistanceSq

float ConvexHullBuilder::Face::mFurthestPointDistanceSq = 0.0f

Squared distance of furthest point from the conflict list to the face.

◆ mNormal

Vec3 ConvexHullBuilder::Face::mNormal

Normal of this face, length is 2 times area of face.

◆ mRemoved

bool ConvexHullBuilder::Face::mRemoved = false

Flag that indicates that face has been removed (face will be freed later)


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