FGeomTools2D::CorrectPolygonWinding

Corrects the polygon winding to match bNegativeWinding Ie.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/GeomTools.h

Include

#include "GeomTools.h"

Source

/Engine/Source/Runtime/Engine/Private/GeomTools.cpp

Syntax

static void CorrectPolygonWinding
(
    TArray< FVector2D > & OutVertices,
    const TArray< FVector2D > & Vertices,
    const bool bNegativeWinding
)

Remarks

Corrects the polygon winding to match bNegativeWinding Ie. If the vertex order doesn't match the winding, it is reversed Returns empty array of points if num points < 3

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