Dungeon Architect  17.0.0
SharpNav.PolyMeshDetail.TriangleData Struct Reference

The triangle info contains three vertex hashes and a flag More...

Public Member Functions

 TriangleData (int hash0, int hash1, int hash2)
 Initializes a new instance of the TriangleData struct. More...
 
 TriangleData (int hash0, int hash1, int hash2, int flags)
 Initializes a new instance of the TriangleData struct. More...
 
 TriangleData (TriangleData data, List< Vector3 > verts, Vector3[] vpoly, int npoly)
 Initializes a new instance of the TriangleData struct. More...
 

Static Public Member Functions

static int GetTriFlags (ref TriangleData t, List< Vector3 > verts, Vector3[] vpoly, int npoly)
 Determine which edges of the triangle are part of the polygon More...
 

Public Attributes

int VertexHash0
 
int VertexHash1
 
int VertexHash2
 
int Flags
 

Properties

int this[int index] [get]
 Gets a triangle's particular vertex More...
 

Detailed Description

The triangle info contains three vertex hashes and a flag

Definition at line 1387 of file PolyMeshDetail.cs.

Constructor & Destructor Documentation

◆ TriangleData() [1/3]

SharpNav.PolyMeshDetail.TriangleData.TriangleData ( int  hash0,
int  hash1,
int  hash2 
)

Initializes a new instance of the TriangleData struct.

Parameters
hash0Vertex A
hash1Vertex B
hash2Vertex C

Definition at line 1400 of file PolyMeshDetail.cs.

◆ TriangleData() [2/3]

SharpNav.PolyMeshDetail.TriangleData.TriangleData ( int  hash0,
int  hash1,
int  hash2,
int  flags 
)

Initializes a new instance of the TriangleData struct.

Parameters
hash0Vertex A
hash1Vertex B
hash2Vertex C
flagsThe triangle flags

Definition at line 1415 of file PolyMeshDetail.cs.

◆ TriangleData() [3/3]

SharpNav.PolyMeshDetail.TriangleData.TriangleData ( TriangleData  data,
List< Vector3 verts,
Vector3[]  vpoly,
int  npoly 
)

Initializes a new instance of the TriangleData struct.

Parameters
dataThe triangle itself
vertsThe list of all the vertices
vpolyThe list of the polygon's vertices

Definition at line 1429 of file PolyMeshDetail.cs.

Member Function Documentation

◆ GetTriFlags()

static int SharpNav.PolyMeshDetail.TriangleData.GetTriFlags ( ref TriangleData  t,
List< Vector3 verts,
Vector3[]  vpoly,
int  npoly 
)
static

Determine which edges of the triangle are part of the polygon

Parameters
tA triangle.
vertsThe vertex buffer that the triangle is referencing.
vpolyPolygon vertex data.
Returns
The triangle's flags.

Definition at line 1466 of file PolyMeshDetail.cs.

Property Documentation

◆ this[int index]

int SharpNav.PolyMeshDetail.TriangleData.this[int index]
get

Gets a triangle's particular vertex

Parameters
indexVertex index
Returns
Triangle vertex hash

Definition at line 1442 of file PolyMeshDetail.cs.


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