Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/CompGeom > API/Runtime/GeometryCore/CompGeom/TConvexHull3 > API/Runtime/GeometryCore/CompGeom/TConvexHull3/GetSimplifiedFaces
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/ConvexHull3.h |
| Include | #include "CompGeom/ConvexHull3.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/CompGeom/ConvexHull3.cpp |
void GetSimplifiedFaces
(
TFunctionRef < void< int32 > &, TVector < RealType >)> PolygonFunc,
TFunctionRef < TVector < RealType >)> GetPointFunc,
RealType FaceAngleToleranceInDegrees,
RealType PlaneDistanceTolerance
) const
Remarks
Get faces of the convex hull as convex polygons, simplifying the hull by merging near-coplanar faces and only keeping vertices that are on the corner of at least three merged faces
Parameters
| Name | Description |
|---|---|
| PolygonFunc | Callback to be called for each polygon, with the array of vertex indices and the face normal |
| GetPointFunc | Function providing array-style access into points |
| FaceAngleToleranceInDegrees | The hull will be simplified by merging faces with less than this dihedral angle between them |
| PlaneDistanceTolerance | Faces will not merge unless all points on the face are within this distance of the combined (average) face plane |