Dungeon Architect  17.0.0
SharpNav.PolyMeshDetail Class Reference

The PolyMeshDetail class is a combination of a PolyMesh and a CompactHeightfield merged together More...

Classes

struct  MeshData
 The MeshData struct contains information about vertex and triangle base and offset values for array indices More...
 
struct  TriangleData
 The triangle info contains three vertex hashes and a flag More...
 

Public Member Functions

 PolyMeshDetail (PolyMesh mesh, CompactHeightfield compactField, NavMeshGenerationSettings settings)
 Initializes a new instance of the PolyMeshDetail class. More...
 
 PolyMeshDetail (PolyMesh mesh, CompactHeightfield compactField, float sampleDist, float sampleMaxError)
 Initializes a new instance of the PolyMeshDetail class. More...
 

Properties

int MeshCount [get]
 Gets the number of meshes (MeshData) More...
 
int VertCount [get]
 Gets the number of vertices More...
 
int TrisCount [get]
 Gets the number of triangles More...
 
MeshData[] Meshes [get]
 Gets the mesh data
More...
 
Vector3[] Verts [get]
 Gets the vertex data More...
 
TriangleData[] Tris [get]
 Gets the triangle data More...
 

Detailed Description

The PolyMeshDetail class is a combination of a PolyMesh and a CompactHeightfield merged together

Definition at line 22 of file PolyMeshDetail.cs.

Constructor & Destructor Documentation

◆ PolyMeshDetail() [1/2]

SharpNav.PolyMeshDetail.PolyMeshDetail ( PolyMesh  mesh,
CompactHeightfield  compactField,
NavMeshGenerationSettings  settings 
)

Initializes a new instance of the PolyMeshDetail class.

Parameters
meshThe PolyMesh.
compactFieldThe CompactHeightfield used to add height detail.
settingsThe settings to build with.

Definition at line 48 of file PolyMeshDetail.cs.

◆ PolyMeshDetail() [2/2]

SharpNav.PolyMeshDetail.PolyMeshDetail ( PolyMesh  mesh,
CompactHeightfield  compactField,
float  sampleDist,
float  sampleMaxError 
)

Initializes a new instance of the PolyMeshDetail class.

PolyMeshDetail uses a CompactHeightfield to add in details to a PolyMesh. This detail is triangulated into a new mesh and can be used to approximate height in the walkable areas of a scene.

Parameters
meshThe PolyMesh.
compactFieldThe CompactHeightfield used to add height detail.
sampleDistThe sampling distance.
sampleMaxErrorThe maximum sampling error allowed.

Definition at line 65 of file PolyMeshDetail.cs.

Property Documentation

◆ MeshCount

int SharpNav.PolyMeshDetail.MeshCount
get

Gets the number of meshes (MeshData)

Definition at line 217 of file PolyMeshDetail.cs.

◆ Meshes

MeshData [] SharpNav.PolyMeshDetail.Meshes
get

Gets the mesh data

Definition at line 259 of file PolyMeshDetail.cs.

◆ Tris

TriangleData [] SharpNav.PolyMeshDetail.Tris
get

Gets the triangle data

Definition at line 281 of file PolyMeshDetail.cs.

◆ TrisCount

int SharpNav.PolyMeshDetail.TrisCount
get

Gets the number of triangles

Definition at line 245 of file PolyMeshDetail.cs.

◆ VertCount

int SharpNav.PolyMeshDetail.VertCount
get

Gets the number of vertices

Definition at line 231 of file PolyMeshDetail.cs.

◆ Verts

Vector3 [] SharpNav.PolyMeshDetail.Verts
get

Gets the vertex data

Definition at line 270 of file PolyMeshDetail.cs.


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