UE::Geometry::ConstrainedDelaunayTriangulate

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::ConstrainedDelaunayTriangulate
        (
            const TGeneralPolygon2< RealType > & GeneralPolygon
        )
    }
}

Remarks

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

Returns

An array of triangle indices. Indices refer to a flat array w/ the outer polygon vertices first, and the hole vertices appended after.

Parameters

Parameter

Description

GeneralPolygon

A general polygon, which may include holes.