Navigation
API > API/Runtime > API/Runtime/GeometryCore
| Name | TConvexHull2 |
| Type | class |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/ConvexHull2.h |
| Include Path | #include "CompGeom/ConvexHull2.h" |
Syntax
template<typename RealType>
class TConvexHull2
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Empty () |
Empty any previously-computed convex hull data. | CompGeom/ConvexHull2.h | |
int32 GetDimension() |
CompGeom/ConvexHull2.h | ||
TLine2< RealType > GetLine
(
TArrayView< const TVector2< RealType > > Points |
CompGeom/ConvexHull2.h | ||
int32 GetNumUniquePoints() |
Number of unique points considered by convex hull construction (excludes exact duplicate points and filtered-out points) | CompGeom/ConvexHull2.h | |
TArray< int32 > const & GetPolygonIndices() |
CompGeom/ConvexHull2.h | ||
bool IsSolutionAvailable() |
CompGeom/ConvexHull2.h | ||
bool Solve
(
TArrayView< const TVector2< RealType > > Points |
Default FilterFunc version of the above Solve(); workaround for clang bug https://bugs.llvm.org/show_bug.cgi?id=25333 | CompGeom/ConvexHull2.h | |
bool Solve
(
TArrayView< const TVector2< RealType > > Points, |
Generate convex hull as long as input is not degenerate If input is degenerate, this will return false, and caller can call GetDimension() to determine whether the points were collinear, or all the same point | CompGeom/ConvexHull2.h | |
bool Solve
(
int32 NumPoints, |
Generate convex hull as long as input is not degenerate If input is degenerate, this will return false, and caller can call GetDimension() to determine whether the points were collinear, or all the same point | CompGeom/ConvexHull2.h | |
bool SolveSimplePolygon
(
int32 NumPolygonPoints, |
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 | CompGeom/ConvexHull2.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void GetHull
(
TFunctionRef< TVector2< RealType >(int32)> GetPointFunc, |
Divide-and-conquer algorithm | CompGeom/ConvexHull2.h | |
void GetTangent
(
TFunctionRef< TVector2< RealType >(int32)> GetPointFunc, |
CompGeom/ConvexHull2.h | ||
void Merge
(
TFunctionRef< TVector2< RealType >(int32)> GetPointFunc, |
CompGeom/ConvexHull2.h |