TConvexHull2::Solve

Generate convex hull as long as input is not degenerate If input is degenerate, this will return false, and caller can call [GetDimension()](API\Plugins\GeometryAlgorithms\TConvexHull2\GetDimension) to determine whether the points were collinear, or all the same point

Windows
MacOS
Linux

References

Module

GeometryAlgorithms

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometryAlgorithms/Public/ConvexHull2.h

Include

#include "ConvexHull2.h"

Source

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometryAlgorithms/Private/ConvexHull2.cpp

Syntax

bool Solve
(
    int32 NumPoints,
    TFunctionRef< FVector2< RealType >(int32)> GetPointFunc,
    TFunctionRef< bool)> FilterFunc
)

Remarks

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

Returns

true if hull was generated, false if points span < 2 dimensions

Parameters

Parameter

Description

NumPoints

Number of points to consider

GetPointFunc

Function providing array-style access into points

FilterFunc

Optional filter to include only a subset of the points in the output hull

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss