[This is preliminary documentation and is subject to change.]

Provides various constants and utility methods related to generating navigation mesh data.

Namespace: org.critterai.nmgen
Assembly: cai-nmgen (in cai-nmgen.dll) Version: 0.4.0.0 (0.4.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static class NMGen
Public NotInheritable Class NMGen
public ref class NMGen abstract sealed

Members

         
 All Members  Fields   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
ClampArea(Byte)
Clamps the value to the valid area range. (0 <= value <= MaxArea)
ClampArea(Int32)
Clamps the value to the valid area range. (0 <= value <= MaxArea)
ClearUnwalkableTriangles(BuildContext, TriangleMesh, Single, array<Byte>[]()[][])
Set the area of all triangles with a slope above the specified value to NullArea.
CreateAreaBuffer(Int32, Byte)
Creates an area buffer with all values set to the the specified area.
CreateDefaultAreaBuffer(Int32)
Creates an area buffer with all values set to MaxArea.
DeriveSizeOfCellGrid(Vector3, Vector3, Single, Int32%, Int32%)
Derive the width and depth of a cell grid based on the provided parameters.
DeriveSizeOfTileGrid(Vector3, Vector3, Single, Int32, Int32%, Int32%)
Derives the width and depth of a tile grid based on the provided parameters.
ExtractTriMesh(PolyMeshDetail, array<Vector3>[]()[][]%, array<Int32>[]()[][]%)
Builds an aggregate triangle mesh from a detail mesh.
IsValidAreaBuffer(array<Byte>[]()[][], Int32)
Validates the content of an area buffer. (All areas are valid.)
MarkWalkableTriangles(BuildContext, TriangleMesh, Single, array<Byte>[]()[][])
Set the area of all triangles with a slope below the specified value to MaxArea.
MaxAllowedSlope
The maximum allowed value for parameters that define slope.
MaxAllowedVertsPerPoly
The maximum allowed value for parameters that define maximum vertices per polygon.
MaxArea
The maximum allowed area.
MinCellSize
The minimum allowed value for cells size parameters.
MinWalkableHeight
The minimum value for parameters that define walkable height.
NullArea
Represents an unwalkable area.
NullRegion
Represents the null region.

Inheritance Hierarchy

System..::..Object
  org.critterai.nmgen..::..NMGen

See Also