Dungeon Architect  17.0.0
SharpNav.PolyMesh.Polygon Class Reference

Each polygon is a collection of vertices. It is the basic unit of the PolyMesh More...

Public Member Functions

 Polygon (int numVertsPerPoly, Area area, RegionId regionId, int flags)
 Initializes a new instance of the Polygon class. More...
 
bool ContainsVertex (int vertex)
 Determine if the vertex is in polygon. More...
 

Properties

int[] Vertices [get]
 Gets the indices for the vertices. More...
 
int[] NeighborEdges [get]
 Gets the neighbor edges. More...
 
Area Area [get, set]
 Gets or sets the area id More...
 
RegionId RegionId [get, set]
 Gets or sets the region identifier. More...
 
int Flags [get, set]
 Gets or sets the flags. More...
 
int VertexCount [get]
 Gets the the number of vertex. More...
 

Detailed Description

Each polygon is a collection of vertices. It is the basic unit of the PolyMesh

Definition at line 1377 of file PolyMesh.cs.

Constructor & Destructor Documentation

◆ Polygon()

SharpNav.PolyMesh.Polygon.Polygon ( int  numVertsPerPoly,
Area  area,
RegionId  regionId,
int  flags 
)

Initializes a new instance of the Polygon class.

Parameters
numVertsPerPolyThe number of vertices per polygon.
areaThe AreaId
regionIdThe RegionId
flagsPolygon flags

Definition at line 1392 of file PolyMesh.cs.

Member Function Documentation

◆ ContainsVertex()

bool SharpNav.PolyMesh.Polygon.ContainsVertex ( int  vertex)

Determine if the vertex is in polygon.

Returns
true, if vertex was containsed, false otherwise.
Parameters
vertexThe Vertex.

Definition at line 1502 of file PolyMesh.cs.

Property Documentation

◆ Area

Area SharpNav.PolyMesh.Polygon.Area
getset

Gets or sets the area id

Definition at line 1434 of file PolyMesh.cs.

◆ Flags

int SharpNav.PolyMesh.Polygon.Flags
getset

Gets or sets the flags.

The flags.

Definition at line 1468 of file PolyMesh.cs.

◆ NeighborEdges

int [] SharpNav.PolyMesh.Polygon.NeighborEdges
get

Gets the neighbor edges.

The neighbor edges.

Definition at line 1423 of file PolyMesh.cs.

◆ RegionId

RegionId SharpNav.PolyMesh.Polygon.RegionId
getset

Gets or sets the region identifier.

The region identifier.

Definition at line 1451 of file PolyMesh.cs.

◆ VertexCount

int SharpNav.PolyMesh.Polygon.VertexCount
get

Gets the the number of vertex.

The vertex count.

Definition at line 1485 of file PolyMesh.cs.

◆ Vertices

int [] SharpNav.PolyMesh.Polygon.Vertices
get

Gets the indices for the vertices.

The vertices.

Definition at line 1411 of file PolyMesh.cs.


The documentation for this class was generated from the following file: