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
(
TArray < FPolygonFace > & OutPolygons,
TFunctionRef < TVector < RealType >)> GetPointFunc,
RealType FaceAngleToleranceInDegrees,
RealType PlaneDistanceTolerance,
TArray < TVector < RealType > > * OutPolygonNormals
) 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 |
|---|---|
| OutPolygons | Polygons of the convex hull faces, as arrays of indices into the original points |
| 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 |
| OutPolygonNormals | Optional array of normals for each polygon |