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.
 
void Initialize (int inIdx0, int inIdx1, int inIdx2, const Vec3 *inPositions)
 Initialize a face with three indices.
 
void CalculateNormalAndCentroid (const Vec3 *inPositions)
 Calculates the centroid and normal for this face.
 
bool IsFacing (Vec3Arg inPosition) const
 Check if face inFace is facing inPosition.
 
- 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.
 
Vec3 mCentroid
 Center of the face.
 
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.
 
EdgemFirstEdge = nullptr
 First edge of this face.
 
float mFurthestPointDistanceSq = 0.0f
 Squared distance of furthest point from the conflict list to the face.
 
bool mRemoved = false
 Flag that indicates that face has been removed (face will be freed later)
 

Detailed Description

Class that holds the information of one face.

Constructor & Destructor Documentation

◆ ~Face()

JPH_NAMESPACE_BEGIN ConvexHullBuilder::Face::~Face ( )

Destructor.

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: