Table of Contents

Class Polygon

Namespace
HelixToolkit.Geometry
Assembly
HelixToolkit.Geometry.dll

Represents a 2D polygon.

public sealed class Polygon
Inheritance
Polygon
Inherited Members

Properties

Points

Gets or sets the points.

public List<Vector2> Points { get; set; }

Property Value

List<Vector2>

The points.

Methods

Triangulate()

Triangulate the polygon by using the sweep line algorithm

public List<int>? Triangulate()

Returns

List<int>

An index collection.