Table of Contents

Class SweepLinePolygonTriangulator

Namespace
HelixToolkit.Geometry
Assembly
HelixToolkit.Geometry.dll

Triangulate a simple Polygon with the Sweep-Line Algorithm

public static class SweepLinePolygonTriangulator
Inheritance
SweepLinePolygonTriangulator
Inherited Members

Remarks

Fields

Epsilon

Range Extension when searching for the Helper and Edge

public static float Epsilon

Field Value

float

Methods

Triangulate(IList<Vector2>, List<List<Vector2>>?)

Perform the Triangulation of the Input.

public static List<int>? Triangulate(IList<Vector2> polygon, List<List<Vector2>>? holes = null)

Parameters

polygon IList<Vector2>

The Input Polygon

holes List<List<Vector2>>

The Input Polygon

Returns

List<int>

List of Indices representing the Triangulation of the Polygon