C# Класс FarseerPhysics.Common.PolygonManipulation.SimpleCombiner

Combines a list of triangles into a list of convex polygons. Starts with a seed triangle, keep adding triangles to it until you can't add any more without making the polygon non-convex.
Показать файл Открыть проект

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

Метод Описание
polygonizeTriangles ( List triangles, int maxPolys = int.MaxValue, float tolerance = 0.001f ) : List

Combine a list of triangles into a list of convex polygons. Note: This only works on triangles.

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

Метод Описание
addTriangle ( Vertices t, Vertices vertices ) : Vertices

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

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

Combine a list of triangles into a list of convex polygons. Note: This only works on triangles.
public static polygonizeTriangles ( List triangles, int maxPolys = int.MaxValue, float tolerance = 0.001f ) : List
triangles List The triangles.
maxPolys int The maximun number of polygons to return.
tolerance float The tolerance
Результат List