UtilityEx.Triangulate (IList<Point2D>, IList<IList<Point2D>>, Boolean, out Point2D(), out IndexTriangle()) Method

Triangulates a set of contours.
Public Shared Function Triangulate( _ 
ByVal outerLoop As IList(Of Point2D), _ 
ByVal innerLoops As IList(Of IList(Of Point2D)), _ 
ByVal checkDir As Boolean, _ 
ByRef vertices As Point2D(), _ 
ByRef triangles As IndexTriangle() _ 
) As Boolean
This language is not supported or no code example is available.
public static bool Triangulate( 
IList<Point2D> outerLoop
IList<IList<Point2D>> innerLoops
bool checkDir
out Point2D[] vertices
out IndexTriangle[] triangles 
)
This language is not supported or no code example is available.

Parameters

outerLoop
IList<Point2D>

Outer contour

innerLoops
IList<IList<Point2D>>

A list of inner contours, can be null/Nothing.

checkDir
bool

When true, the contour orientation is fixed automatically.

vertices
Point2D[]

The resulting triangulation 2D vertices

triangles
IndexTriangle[]

The resulting triangulation triangles

Return Value

bool

True if the operation succeeds, false otherwise.

.NET Framework

Supported in: 4.8

In this article

Definition