Open 3D Engine RecastNavigation Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
RecastNavigation::RecastProcessing Struct Reference

Public Member Functions

void InitializeMeshConfig (TileGeometry *geom, const RecastNavigationMeshConfig &meshConfig)
 
bool RasterizeInputPolygonSoup ()
 
void FilterWalkableSurfaces (const RecastNavigationMeshConfig &meshConfig)
 
bool PartitionWalkableSurfaceToSimpleRegions ()
 
bool TraceAndSimplifyRegionContours ()
 
bool BuildPolygonsMeshFromContours ()
 
bool CreateDetailMesh ()
 
NavigationTileData CreateDetourData (TileGeometry *geom, const RecastNavigationMeshConfig &meshConfig)
 

Public Attributes

rcConfig m_config = {}
 
AZStd::vector< AZ::u8 > m_trianglesAreas
 
RecastPointer< rcHeightfield > m_solid
 
RecastPointer< rcCompactHeightfield > m_compactHeightfield
 
RecastPointer< rcContourSet > m_contourSet
 
RecastPointer< rcPolyMesh > m_polyMesh
 
RecastPointer< rcPolyMeshDetail > m_polyMeshDetail
 
const float * m_vertices = nullptr
 
int m_vertexCount = 0
 
const int * m_triangleData = nullptr
 
int m_triangleCount = 0
 
rcContext * m_context = nullptr
 

Member Function Documentation

◆ BuildPolygonsMeshFromContours()

bool RecastNavigation::RecastProcessing::BuildPolygonsMeshFromContours ( )

Sixth step in building a navigation mesh.

Returns
true if successful

◆ CreateDetailMesh()

bool RecastNavigation::RecastProcessing::CreateDetailMesh ( )

Seventh step in building a navigation mesh.

Returns
true if successful

◆ CreateDetourData()

NavigationTileData RecastNavigation::RecastProcessing::CreateDetourData ( TileGeometry geom,
const RecastNavigationMeshConfig meshConfig 
)

Eight and last step in building a navigation mesh.

Parameters
geominput geometry, must be the same as provided in @InitializeMeshConfig
meshConfignavigation mesh configuration
Returns
navigation tile data in Recast-binary format

◆ FilterWalkableSurfaces()

void RecastNavigation::RecastProcessing::FilterWalkableSurfaces ( const RecastNavigationMeshConfig meshConfig)

Thirst step in building a navigation mesh. Once all geometry is rasterized, we do initial pass of filtering to remove unwanted overhangs caused by the conservative rasterization as well as filter spans where the character cannot possibly stand.

Parameters
meshConfignavigation mesh configuration, must be the same as provided in @InitializeMeshConfig

◆ InitializeMeshConfig()

void RecastNavigation::RecastProcessing::InitializeMeshConfig ( TileGeometry geom,
const RecastNavigationMeshConfig meshConfig 
)

First step in building a navigation mesh.

Parameters
geominput geometry
meshConfignavigation mesh configuration

◆ PartitionWalkableSurfaceToSimpleRegions()

bool RecastNavigation::RecastProcessing::PartitionWalkableSurfaceToSimpleRegions ( )

Fourth step in building a navigation mesh. Compact the height field so that it is faster to handle from now on. This will result more cache coherent data as well as the neighbors between walkable cells will be calculated.

Returns
true if successful

◆ RasterizeInputPolygonSoup()

bool RecastNavigation::RecastProcessing::RasterizeInputPolygonSoup ( )

Second step in building a navigation mesh.

Returns
true if successful

◆ TraceAndSimplifyRegionContours()

bool RecastNavigation::RecastProcessing::TraceAndSimplifyRegionContours ( )

Fifth step in building a navigation mesh.

Returns
true if successful

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