C# 클래스 Nez.Triangulator

simple ear clipping triangulator. the final triangles will be present in the triangleIndices list
파일 보기 프로젝트 열기: prime31/Nez 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
triangleIndices List

공개 메소드들

메소드 설명
initialize ( int count ) : void
testPointTriangle ( Vector2 point, Vector2 a, Vector2 b, Vector2 c ) : bool
triangulate ( Vector2 points, bool arePointsCCW = true ) : void

Computes a triangle list that fully covers the area enclosed by the given set of points. If points are not CCW, pass false for the arePointsCCW parameter

메소드 상세

initialize() 공개 메소드

public initialize ( int count ) : void
count int
리턴 void

testPointTriangle() 공개 정적인 메소드

public static testPointTriangle ( Vector2 point, Vector2 a, Vector2 b, Vector2 c ) : bool
point Vector2
a Vector2
b Vector2
c Vector2
리턴 bool

triangulate() 공개 메소드

Computes a triangle list that fully covers the area enclosed by the given set of points. If points are not CCW, pass false for the arePointsCCW parameter
public triangulate ( Vector2 points, bool arePointsCCW = true ) : void
points Vector2 A list of points that defines an enclosing path.
arePointsCCW bool
리턴 void

프로퍼티 상세

triangleIndices 공개적으로 프로퍼티

The indexes of triangle list entries for the list of points used in the last triangulate call.
public List triangleIndices
리턴 List