|
JPL Spatial
Sound spatialization and propagation library
|
Class that holds the information of one face. More...
#include <JPLSpatial/Geometry/ConvexHullBuilder.h>
Public Member Functions | |
| Face ()=default | |
| ~Face () | |
| void | Initialize (int inIdx0, int inIdx1, int inIdx2, std::span< const Vec3 > inPositions) |
| Initialize a face with three indices. | |
| void | CalculateNormalAndCentroid (std::span< const Vec3 > inPositions) |
| Calculates the centroid and normal for this face. | |
| template<class Vec3i > | |
| bool | Triangulate (std::span< const Vec3 > inPositions, Array< Vec3i > &outTris) const |
| bool | IsFacing (const Vec3 &inPosition) const |
| Check if face inFace is facing inPosition. | |
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. | |
| Edge * | mFirstEdge = 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) | |
Class that holds the information of one face.
|
default |
|
inline |
|
inline |
Calculates the centroid and normal for this face.
|
inline |
Initialize a face with three indices.
|
inline |
Check if face inFace is facing inPosition.
|
inline |
| Vec3 JPL::ConvexHullBuilder< Vec3Type >::Face::mCentroid |
Center of the face.
| ConflictList JPL::ConvexHullBuilder< Vec3Type >::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* JPL::ConvexHullBuilder< Vec3Type >::Face::mFirstEdge = nullptr |
First edge of this face.
| float JPL::ConvexHullBuilder< Vec3Type >::Face::mFurthestPointDistanceSq = 0.0f |
Squared distance of furthest point from the conflict list to the face.
| Vec3 JPL::ConvexHullBuilder< Vec3Type >::Face::mNormal |
Normal of this face, length is 2 times area of face.
| bool JPL::ConvexHullBuilder< Vec3Type >::Face::mRemoved = false |
Flag that indicates that face has been removed (face will be freed later)