C# 클래스 FarseerPhysics.Common.Decomposition.BayazitDecomposer

Convex decomposition algorithm created by Mark Bayazit (http://mnbayazit.com/) Properties: - Tries to decompose using polygons instead of triangles. - Tends to produce optimal results with low processing time. - Running time is O(nr), n = number of vertices, r = reflex vertices. - Does not support holes. For more information about this algorithm, see http://mnbayazit.com/406/bayazit
파일 보기 프로젝트 열기: prime31/Nez 1 사용 예제들

공개 메소드들

메소드 설명
ConvexPartition ( Vertices vertices ) : List

Decompose the polygon into several smaller non-concave polygon. If the polygon is already convex, it will return the original polygon, unless it is over Settings.MaxPolygonVertices.

비공개 메소드들

메소드 설명
At ( int i, Vertices vertices ) : Vector2
CanSee ( int i, int j, Vertices vertices ) : bool
Copy ( int i, int j, Vertices vertices ) : Vertices
Left ( Vector2 a, Vector2 b, Vector2 c ) : bool
LeftOn ( Vector2 a, Vector2 b, Vector2 c ) : bool
Reflex ( int i, Vertices vertices ) : bool
Right ( Vector2 a, Vector2 b, Vector2 c ) : bool
Right ( int i, Vertices vertices ) : bool
RightOn ( Vector2 a, Vector2 b, Vector2 c ) : bool
SquareDist ( Vector2 a, Vector2 b ) : float
TriangulatePolygon ( Vertices vertices ) : List

메소드 상세

ConvexPartition() 공개 정적인 메소드

Decompose the polygon into several smaller non-concave polygon. If the polygon is already convex, it will return the original polygon, unless it is over Settings.MaxPolygonVertices.
public static ConvexPartition ( Vertices vertices ) : List
vertices Vertices
리턴 List