Recast Navigation
Navigation-mesh Toolset for Games
InputGeom Class Reference

#include <InputGeom.h>

Public Member Functions

 InputGeom ()
 
 ~InputGeom ()
 
bool load (class rcContext *ctx, const std::string &filepath)
 
bool saveGeomSet (const BuildSettings *settings)
 
const rcMeshLoaderObjgetMesh () const
 Method to return static mesh data. More...
 
const float * getMeshBoundsMin () const
 
const float * getMeshBoundsMax () const
 
const float * getNavMeshBoundsMin () const
 
const float * getNavMeshBoundsMax () const
 
const rcChunkyTriMeshgetChunkyMesh () const
 
const BuildSettingsgetBuildSettings () const
 
bool raycastMesh (float *src, float *dst, float &tmin)
 
Box Volumes.
int getConvexVolumeCount () const
 
const ConvexVolumegetConvexVolumes () const
 
void addConvexVolume (const float *verts, const int nverts, const float minh, const float maxh, unsigned char area)
 
void deleteConvexVolume (int i)
 
void drawConvexVolumes (struct duDebugDraw *dd, bool hilight=false)
 

Off-Mesh connections.

int getOffMeshConnectionCount () const
 
const float * getOffMeshConnectionVerts () const
 
const float * getOffMeshConnectionRads () const
 
const unsigned char * getOffMeshConnectionDirs () const
 
const unsigned char * getOffMeshConnectionAreas () const
 
const unsigned short * getOffMeshConnectionFlags () const
 
const unsigned int * getOffMeshConnectionId () const
 
void addOffMeshConnection (const float *spos, const float *epos, const float rad, unsigned char bidir, unsigned char area, unsigned short flags)
 
void deleteOffMeshConnection (int i)
 
void drawOffMeshConnections (struct duDebugDraw *dd, bool hilight=false)
 

Constructor & Destructor Documentation

◆ InputGeom()

InputGeom::InputGeom ( )

◆ ~InputGeom()

InputGeom::~InputGeom ( )

Member Function Documentation

◆ addConvexVolume()

void InputGeom::addConvexVolume ( const float *  verts,
const int  nverts,
const float  minh,
const float  maxh,
unsigned char  area 
)

◆ addOffMeshConnection()

void InputGeom::addOffMeshConnection ( const float *  spos,
const float *  epos,
const float  rad,
unsigned char  bidir,
unsigned char  area,
unsigned short  flags 
)

◆ deleteConvexVolume()

void InputGeom::deleteConvexVolume ( int  i)

◆ deleteOffMeshConnection()

void InputGeom::deleteOffMeshConnection ( int  i)

◆ drawConvexVolumes()

void InputGeom::drawConvexVolumes ( struct duDebugDraw dd,
bool  hilight = false 
)

◆ drawOffMeshConnections()

void InputGeom::drawOffMeshConnections ( struct duDebugDraw dd,
bool  hilight = false 
)

◆ getBuildSettings()

const BuildSettings* InputGeom::getBuildSettings ( ) const
inline

◆ getChunkyMesh()

const rcChunkyTriMesh* InputGeom::getChunkyMesh ( ) const
inline

◆ getConvexVolumeCount()

int InputGeom::getConvexVolumeCount ( ) const
inline

◆ getConvexVolumes()

const ConvexVolume* InputGeom::getConvexVolumes ( ) const
inline

◆ getMesh()

const rcMeshLoaderObj* InputGeom::getMesh ( ) const
inline

Method to return static mesh data.

◆ getMeshBoundsMax()

const float* InputGeom::getMeshBoundsMax ( ) const
inline

◆ getMeshBoundsMin()

const float* InputGeom::getMeshBoundsMin ( ) const
inline

◆ getNavMeshBoundsMax()

const float* InputGeom::getNavMeshBoundsMax ( ) const
inline

◆ getNavMeshBoundsMin()

const float* InputGeom::getNavMeshBoundsMin ( ) const
inline

◆ getOffMeshConnectionAreas()

const unsigned char* InputGeom::getOffMeshConnectionAreas ( ) const
inline

◆ getOffMeshConnectionCount()

int InputGeom::getOffMeshConnectionCount ( ) const
inline

◆ getOffMeshConnectionDirs()

const unsigned char* InputGeom::getOffMeshConnectionDirs ( ) const
inline

◆ getOffMeshConnectionFlags()

const unsigned short* InputGeom::getOffMeshConnectionFlags ( ) const
inline

◆ getOffMeshConnectionId()

const unsigned int* InputGeom::getOffMeshConnectionId ( ) const
inline

◆ getOffMeshConnectionRads()

const float* InputGeom::getOffMeshConnectionRads ( ) const
inline

◆ getOffMeshConnectionVerts()

const float* InputGeom::getOffMeshConnectionVerts ( ) const
inline

◆ load()

bool InputGeom::load ( class rcContext ctx,
const std::string &  filepath 
)

◆ raycastMesh()

bool InputGeom::raycastMesh ( float *  src,
float *  dst,
float &  tmin 
)

◆ saveGeomSet()

bool InputGeom::saveGeomSet ( const BuildSettings settings)

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