C# 클래스 UnityPlatformer.Triangulator

http://wiki.unity3d.com/index.php?title=Triangulator This script can be used to split a 2D polygon into triangles. The algorithm supports concave polygons, but not polygons with holes, or multiple polygons at once. Note: This is a naive triangulation implementation. For more well-distributed triangles, consider using Delaunay triangulation, such as with the script here [1]
파일 보기 프로젝트 열기: llafuente/unity-platformer 1 사용 예제들

공개 메소드들

메소드 설명
Triangulate ( ) : int[]

Triangulate logic

Triangulator ( Vector2 points ) : UnityEngine

Constructor

비공개 메소드들

메소드 설명
Area ( ) : float
InsideTriangle ( Vector2 A, Vector2 B, Vector2 C, Vector2 P ) : bool
Snip ( int u, int v, int w, int n, int V ) : bool

메소드 상세

Triangulate() 공개 메소드

Triangulate logic
public Triangulate ( ) : int[]
리턴 int[]

Triangulator() 공개 메소드

Constructor
public Triangulator ( Vector2 points ) : UnityEngine
points UnityEngine.Vector2 Points to triangulate
리턴 UnityEngine