C# 클래스 Project290.Physics.Common.Decomposition.FlipcodeDecomposer

Triangulates a polygon into triangles. Doesn't handle holes.
파일 보기 프로젝트 열기: scastle/Solitude

공개 메소드들

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