Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: PointD[][] Triangulate(this IEnumerable<IEnumerable<PointD>>)

  • Declared in: RT.Modeling.Md

Declaration

public static PointD[][] Triangulate(
    this IEnumerable<IEnumerable<PointD>> polygons
)

Summary

Triangulates a set of polygons in 2D space. Polygons going counter-clockwise are assumed to describe the outline of a face; polygons going clockwise are assumed to describe holes inside of them.

Parameters

this IEnumerable<IEnumerable<PointD>>polygons The polygon to triangulate.

Returns

A collection of 2D triangles.

Exceptions

  • System.InvalidOperationException
    A polygon is not coherent.