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.
파일 보기 프로젝트 열기: prime31/Nez

공개 메소드들

메소드 설명
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