Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/CompGeom > API/Runtime/GeometryCore/CompGeom/TConvexHull2
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/ConvexHull2.h |
| Include | #include "CompGeom/ConvexHull2.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/CompGeom/ConvexHull2.cpp |
bool SolveSimplePolygon
&40;
int32 NumPolygonPoints,
TFunctionRef< TVector2< RealType >(int32)> GetPointFunc,
bool bIsKnownCCW
&41;
Remarks
Generate convex hull for a simple polygon If input has fewer than 3 points, will return false If input is not a simple polygon (e.g. if it has self-intersections), may not find a correct hull true if a hull was generated
Parameters
| Name | Description |
|---|---|
| NumPolygonPoints | Number of points in the polygon |
| GetPointFunc | Function providing array-style access into the polygon points |
| bIsKnownCCW | If true, will save some processing time by assuming input is wound counter-clockwise |