Planeshift
Public Member Functions

InputGeom Class Reference

#include <InputGeom.h>

List of all members.

Public Member Functions

const rcChunkyTriMesh * getChunkyMesh () const
const rcMeshLoaderObj * getMesh () const
 Method to return static mesh data.
const float * getMeshBoundsMax () const
const float * getMeshBoundsMin () const
 InputGeom ()
bool load (class rcContext *ctx, const char *filepath)
bool loadMesh (class rcContext *ctx, const char *filepath)
bool raycastMesh (float *src, float *dst, float &tmin)
bool save (const char *filepath)
 ~InputGeom ()
Box Volumes.
int getConvexVolumeCount () const
const ConvexVolume * getConvexVolumes () 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)

Detailed Description

Definition at line 34 of file InputGeom.h.


Constructor & Destructor Documentation

InputGeom::InputGeom ( )
InputGeom::~InputGeom ( )

Member Function Documentation

void InputGeom::addConvexVolume ( const float *  verts,
const int  nverts,
const float  minh,
const float  maxh,
unsigned char  area 
)
void InputGeom::addOffMeshConnection ( const float *  spos,
const float *  epos,
const float  rad,
unsigned char  bidir,
unsigned char  area,
unsigned short  flags 
)
void InputGeom::deleteConvexVolume ( int  i)
void InputGeom::deleteOffMeshConnection ( int  i)
void InputGeom::drawConvexVolumes ( struct duDebugDraw *  dd,
bool  hilight = false 
)
void InputGeom::drawOffMeshConnections ( struct duDebugDraw *  dd,
bool  hilight = false 
)
const rcChunkyTriMesh* InputGeom::getChunkyMesh ( ) const [inline]

Definition at line 72 of file InputGeom.h.

int InputGeom::getConvexVolumeCount ( ) const [inline]

Definition at line 92 of file InputGeom.h.

const ConvexVolume* InputGeom::getConvexVolumes ( ) const [inline]

Definition at line 93 of file InputGeom.h.

const rcMeshLoaderObj* InputGeom::getMesh ( ) const [inline]

Method to return static mesh data.

Definition at line 69 of file InputGeom.h.

const float* InputGeom::getMeshBoundsMax ( ) const [inline]

Definition at line 71 of file InputGeom.h.

const float* InputGeom::getMeshBoundsMin ( ) const [inline]

Definition at line 70 of file InputGeom.h.

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

Definition at line 81 of file InputGeom.h.

int InputGeom::getOffMeshConnectionCount ( ) const [inline]

Definition at line 77 of file InputGeom.h.

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

Definition at line 80 of file InputGeom.h.

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

Definition at line 82 of file InputGeom.h.

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

Definition at line 83 of file InputGeom.h.

const float* InputGeom::getOffMeshConnectionRads ( ) const [inline]

Definition at line 79 of file InputGeom.h.

const float* InputGeom::getOffMeshConnectionVerts ( ) const [inline]

Definition at line 78 of file InputGeom.h.

bool InputGeom::load ( class rcContext *  ctx,
const char *  filepath 
)
bool InputGeom::loadMesh ( class rcContext *  ctx,
const char *  filepath 
)
bool InputGeom::raycastMesh ( float *  src,
float *  dst,
float &  tmin 
)
bool InputGeom::save ( const char *  filepath)

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