C# Класс Project290.Physics.Common.Decomposition.FlipcodeDecomposer

Triangulates a polygon into triangles. Doesn't handle holes.
Показать файл Открыть проект

Открытые методы

Метод Описание
ConvexPartition ( Vertices contour ) : List

Decompose the polygon into triangles

Приватные методы

Метод Описание
InsideTriangle ( Vector2 &a, Vector2 &b, Vector2 &c, Vector2 &p ) : bool

Check if the point P is inside the triangle defined by the points A, B, C

Snip ( Vertices contour, int u, int v, int w, int n, int V ) : bool

Cut a the contour and add a triangle into V to describe the location of the cut

Описание методов

ConvexPartition() публичный статический Метод

Decompose the polygon into triangles
public static ConvexPartition ( Vertices contour ) : List
contour Vertices The list of points describing the polygon
Результат List