gwnavruntime/utils/objfilereader.h Source File
Go to the documentation of this file.
9 #ifndef Navigatio_ObjFileReader_H
10 #define Navigatio_ObjFileReader_H
34 KyResult ReadObjFile(Ptr<File> objFileToRead);
37 KyUInt32 VerticesCount()
const {
return m_vertices.GetCount(); }
38 const Vec3f* Vertices()
const {
return m_vertices.GetDataPtr(); }
40 KyUInt32 IndicesCount()
const {
return m_indices.GetCount(); }
41 const KyUInt32* Indices()
const {
return m_indices.GetDataPtr(); }
43 KyUInt32 GetFacesCount()
const {
return m_facesCount; }
44 KyUInt32 GetFaceMinVertexCount()
const {
return m_faceMinVertexCount; }
45 KyUInt32 GetFaceMaxVertexCount()
const {
return m_faceMaxVertexCount; }
54 const char* GetFileName()
const {
return m_file !=
KY_NULL ? m_file->GetFilePath() :
KY_NULL; }
59 KyResult ReadFaceFast(
const char* str);
69 const char* m_endOfReadFileChunk;
70 char* m_currentPosInBuffer;
90 #endif // Navigatio_ObjFileReader_H
KyInt32 KyResult
Defines a type that can be returned by methods or functions in the Gameware Navigation SDK to indicat...
Definition: types.h:254
This class maintains the mapping between the system of coordinate axes used internally within the gam...
Definition: coordsystem.h:144
General purpose array for movable objects that require explicit construction/destruction.
Definition: kyarray.h:118
#define KY_NULL
Null value.
Definition: types.h:247
#define KY_CLASS_WITHOUT_COPY(ClassName)
Define to forbid copy constructor and copy assignment.
Definition: types.h:387
A basic parser of .obj files in text format able to read triangles.
Definition: objfilereader.h:25
This class represents a three-dimensional axis-aligned bounding box whose dimensions are stored using...
Definition: box3f.h:25
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36
This class defines a three-dimensional vector whose coordinates are stored using floating-point numbe...
Definition: vec3f.h:23
Box3f ComputeBoundingBox() const
Will browse all the vertices extracted from file and compute a bounding box from them.