Jolt Physics
A multi core friendly Game Physics Engine
|
Class that holds the information of one face. More...
#include <ConvexHullBuilder.h>
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... | |
Edge * | mFirstEdge = 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... | |
Class that holds the information of one face.
JPH_SUPPRESS_WARNINGS_STD_BEGIN JPH_SUPPRESS_WARNINGS_STD_END JPH_NAMESPACE_BEGIN ConvexHullBuilder::Face::~Face | ( | ) |
Destructor.
void ConvexHullBuilder::Face::CalculateNormalAndCentroid | ( | const Vec3 * | inPositions | ) |
Calculates the centroid and normal for this face.
void ConvexHullBuilder::Face::Initialize | ( | int | inIdx0, |
int | inIdx1, | ||
int | inIdx2, | ||
const Vec3 * | inPositions | ||
) |
Initialize a face with three indices.
|
inline |
Check if face inFace is facing inPosition.
Vec3 ConvexHullBuilder::Face::mCentroid |
Center of the face.
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.
Edge* ConvexHullBuilder::Face::mFirstEdge = nullptr |
First edge of this face.
float ConvexHullBuilder::Face::mFurthestPointDistanceSq = 0.0f |
Squared distance of furthest point from the conflict list to the face.
Vec3 ConvexHullBuilder::Face::mNormal |
Normal of this face, length is 2 times area of face.
bool ConvexHullBuilder::Face::mRemoved = false |
Flag that indicates that face has been removed (face will be freed later)