ConvexHull2D::ComputeConvexHullLegacy

Calculates convex hull on xy-plane of points on 'Points' and stores the indices of the resulting hull in 'OutIndices'.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/ConvexHull2d.h

Include

#include "Math/ConvexHull2d.h"

Syntax

namespace ConvexHull2D
{
    template<typename Allocator>
    void ConvexHull2D::ComputeConvexHullLegacy
    (
        const TArray< FVector, Allocator > & Points,
        TArray< int32, Allocator > & OutIndices
    )
}

Remarks

Calculates convex hull on xy-plane of points on 'Points' and stores the indices of the resulting hull in 'OutIndices'. This code was fixed to work with duplicated vertices and precision issues.

Should be replaced by ComputeConvexHull and tested properly. Keep for backward compatibility until then.

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