3#include <Core/CoreDLL.h>
4#include <Foundation/Containers/Deque.h>
5#include <Foundation/Containers/DynamicArray.h>
6#include <Foundation/Math/Vec3.h>
20 PL_DECLARE_POD_TYPE();
22 plUInt16 m_uiVertexIdx[3];
57 void StoreTriangle(plUInt16 i, plUInt16 j, plUInt16 k);
60 bool IsInside(plUInt32 vtxId)
const;
61 void RemoveVisibleFaces(plUInt32 vtxId);
62 void PatchHole(plUInt32 vtxId);
63 bool PruneFlatVertices(
double fNormalThreshold);
64 bool PruneDegenerateTriangles(
double fMaxCosAngle);
65 bool PruneSmallTriangles(
double fMaxEdgeLen);
70 PL_ALWAYS_INLINE TwoSet()
75 PL_ALWAYS_INLINE
void Add(plUInt16 x) { (a == 0xFFFF ? a : b) = x; }
76 PL_ALWAYS_INLINE
bool Contains(plUInt16 x) {
return a == x || b == x; }
77 PL_ALWAYS_INLINE
void Remove(plUInt16 x) { (a == x ? a : b) = 0xFFFF; }
78 PL_ALWAYS_INLINE
int GetSize() {
return (a != 0xFFFF) + (b != 0xFFFF); }
86 double m_fPlaneDistance;
87 plUInt16 m_uiVertexIdx[3];
95 double m_fMinTriangleEdgeLength = 0.05;
Float wrapper struct for a safe usage and conversions of angles.
Definition Angle.h:10
static constexpr plAngle MakeFromDegree(float fDegree)
Creates an instance of plAngle that was initialized from degree. (Performs a conversion)
Definition Angle_inl.h:33
This class encapsulates an array and it's size. It is recommended to use this class instead of plain ...
Definition ArrayPtr.h:37
Computes convex hulls for 3D meshes.
Definition ConvexHull.h:16
void SetSimplificationMinTriangleAngle(plAngle angle)
Used to remove degenerate and unnecessary triangles that have corners with very little angle change....
Definition ConvexHull.h:31
void SetSimplificationFlatVertexNormalThreshold(plAngle angle)
Used to remove vertices that do not contribute much to the silhouette. Vertices whose adjacent triang...
Definition ConvexHull.h:36
void SetSimplificationMinTriangleEdgeLength(double fLen)
The minimum triangle edge length. Every edge shorter than this will be discarded and replaced by a si...
Definition ConvexHull.h:43
Definition DynamicArray.h:81
Definition ConvexHull.h:19
Default enum for returning failure or success, instead of using a bool.
Definition Types.h:54