UE::Geometry::ConstrainedDelaunayTriangulateWithVertices

Convenience function; invokes [TConstrainedDelaunay2::Triangulate](API\Plugins\GeometryAlgorithms\TConstrainedDelaunay2\Triangulate\1) with most-often-used options.

Choose your operating system:

Windows

macOS

Linux

References

Module

GeometryAlgorithms

Header

/Engine/Plugins/Runtime/GeometryProcessing/Source/GeometryAlgorithms/Public/ConstrainedDelaunay2.h

Include

#include "ConstrainedDelaunay2.h"

Source

/Engine/Plugins/Runtime/GeometryProcessing/Source/GeometryAlgorithms/Private/ConstrainedDelaunay2.cpp

Syntax

namespace UE
{
    namespace Geometry
    {
        template<typename RealType>
        TArray< FIndex3i > UE::Geometry::ConstrainedDelaunayTriangulateWithVertices
        (
            const TGeneralPolygon2< RealType > & GeneralPolygon,
            TArray< TVector2< RealType >> & OutVertices
        )
    }
}

Remarks

Convenience function; invokes TConstrainedDelaunay2::Triangulate with most-often-used options.

Returns

An array of triangle indices.

Parameters

Parameter

Description

GeneralPolygon

A general polygon, which may include holes.

OutVertices

Output array of vertices used in the triangulation.