C# 클래스 SharpNav.PolyMesh.Polygon

Each polygon is a collection of vertices. It is the basic unit of the PolyMesh
파일 보기 프로젝트 열기: Robmaister/SharpNav

공개 메소드들

메소드 설명
ContainsVertex ( int vertex ) : bool

Determine if the vertex is in polygon.

MergeWith ( Polygon other, int startEdge, int otherStartEdge, int temp ) : void

Merges another polygon with this one.

Polygon ( int numVertsPerPoly, Area area, RegionId regionId )

Initializes a new instance of the Polygon class.

메소드 상세

ContainsVertex() 공개 메소드

Determine if the vertex is in polygon.
public ContainsVertex ( int vertex ) : bool
vertex int The Vertex.
리턴 bool

MergeWith() 공개 메소드

Merges another polygon with this one.
public MergeWith ( Polygon other, int startEdge, int otherStartEdge, int temp ) : void
other Polygon The other polygon to merge into this one.
startEdge int This starting edge for this polygon.
otherStartEdge int The starting edge for the other polygon.
temp int A temporary vertex buffer. Must be at least numVertsPerPoly long.
리턴 void

Polygon() 공개 메소드

Initializes a new instance of the Polygon class.
public Polygon ( int numVertsPerPoly, Area area, RegionId regionId )
numVertsPerPoly int The number of vertices per polygon.
area Area The AreaId
regionId RegionId The RegionId