Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
NavMeshLoader.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  Divide
 Handle console commands that start with a forward slash.
 
namespace  Divide::AI
 
namespace  Divide::AI::Navigation
 
namespace  Divide::AI::Navigation::NavigationMeshLoader
 

Functions

char * Divide::AI::Navigation::NavigationMeshLoader::ParseRow (char *buf, const char *const bufEnd, char *row, I32 len) noexcept
 
I32 Divide::AI::Navigation::NavigationMeshLoader::ParseFace (char *row, I32 *data, I32 n, I32 vcnt) noexcept
 
bool Divide::AI::Navigation::NavigationMeshLoader::LoadMeshFile (NavModelData &outData, const ResourcePath &filePath, const char *fileName)
 Load the input geometry from file (Wavefront OBJ format) and save it in 'outData'.
 
bool Divide::AI::Navigation::NavigationMeshLoader::SaveMeshFile (const NavModelData &inData, const ResourcePath &filePath, const char *filename)
 Save the navigation input geometry in Wavefront OBJ format.
 
NavModelData Divide::AI::Navigation::NavigationMeshLoader::MergeModels (NavModelData &a, NavModelData &b, bool delOriginals=false)
 Merge the data from two navigation geometry sources.
 
void Divide::AI::Navigation::NavigationMeshLoader::AddVertex (NavModelData *modelData, const vec3< F32 > &vertex)
 
void Divide::AI::Navigation::NavigationMeshLoader::AddTriangle (NavModelData *modelData, const vec3< U32 > &triangleIndices, U32 triangleIndexOffset=0, const SamplePolyAreas &areaType=SamplePolyAreas::SAMPLE_POLYAREA_GROUND)
 
bool Divide::AI::Navigation::NavigationMeshLoader::Parse (const BoundingBox &box, NavModelData &outData, SceneGraphNode *sgn)
 Parsing method that calls itself recursively until all geometry has been parsed.
 

Variables

constexpr U16 Divide::AI::Navigation::NavigationMeshLoader::BYTE_BUFFER_VERSION = 1u
 
constexpr U32 Divide::AI::Navigation::NavigationMeshLoader::g_cubeFaces [6][4]
 
const vec3< F32 > Divide::AI::Navigation::NavigationMeshLoader::g_borderOffset (BORDER_PADDING)