IndexUtil::OrientTriEdge

Assuming [Vertex1,Vertex2] is an unordered edge in TriangleVerts, return Vertex1 and Vertex2 in the correct order (ie the same as TriangleVerts)

Windows
MacOS
Linux

Warnings

  • result is garbage if either vertex is not an edge in TriangleVerts

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/Util/IndexUtil.h

Include

#include "Util/IndexUtil.h"

Syntax

namespace IndexUtil
{
    template<typename T, typename Vec>
    bool IndexUtil::OrientTriEdge
    (
        T & Vertex1,
        T & Vertex2,
        const Vec & TriangleVerts
    )
}

Remarks

Assuming [Vertex1,Vertex2] is an unordered edge in TriangleVerts, return Vertex1 and Vertex2 in the correct order (ie the same as TriangleVerts)

result is garbage if either vertex is not an edge in TriangleVerts

Returns

true if order was swapped

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