Dungeon Architect
17.0.0
|
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... | |
The PolyMeshDetail class is a combination of a PolyMesh and a CompactHeightfield merged together
Definition at line 22 of file PolyMeshDetail.cs.
SharpNav.PolyMeshDetail.PolyMeshDetail | ( | PolyMesh | mesh, |
CompactHeightfield | compactField, | ||
NavMeshGenerationSettings | settings | ||
) |
Initializes a new instance of the PolyMeshDetail class.
mesh | The PolyMesh. |
compactField | The CompactHeightfield used to add height detail. |
settings | The settings to build with. |
Definition at line 48 of file PolyMeshDetail.cs.
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.
mesh | The PolyMesh. |
compactField | The CompactHeightfield used to add height detail. |
sampleDist | The sampling distance. |
sampleMaxError | The maximum sampling error allowed. |
Definition at line 65 of file PolyMeshDetail.cs.
|
get |
Gets the number of meshes (MeshData)
Definition at line 217 of file PolyMeshDetail.cs.
|
get |
Gets the mesh data
Definition at line 259 of file PolyMeshDetail.cs.
|
get |
Gets the triangle data
Definition at line 281 of file PolyMeshDetail.cs.
|
get |
Gets the number of triangles
Definition at line 245 of file PolyMeshDetail.cs.
|
get |
Gets the number of vertices
Definition at line 231 of file PolyMeshDetail.cs.
|
get |
Gets the vertex data
Definition at line 270 of file PolyMeshDetail.cs.