gwnavruntime/collision/indexedmesh.h Source File
Go to the documentation of this file.
8 #ifndef Navigation_InputMesh_H
9 #define Navigation_InputMesh_H
22 class IndexedMesh :
public RefCountBase<IndexedMesh, MemStat_CollisionData>
27 void InitFromBuilder(IndexedMeshBlobBuilder& builder);
30 KyUInt32 GetTriangleCount()
const {
return m_blob->m_indices.GetCount() / 3; }
31 KyUInt32 GetVertexCount()
const {
return m_blob->m_vertices.GetCount(); }
32 KyUInt32 GetIndexCount()
const {
return m_blob->m_indices.GetCount(); }
34 KyUInt32 GetIndexAt(
const KyUInt32 i)
const {
return m_blob->m_indices.GetValues()[i]; }
35 Vec3f GetVertexAt(
const KyUInt32 i)
const {
return m_blob->m_vertices.GetValues()[i]; }
37 const UByte* GetIndicesDataPtr()
const {
return m_blob->GetIndexBase(); }
38 const UByte* GetVerticesDataPtr()
const {
return m_blob->GetVertexBase(); }
43 KyResult WriteToObjFile(File* objFile)
const;
45 BlobHandler<IndexedMeshBlob> * GetBlobHandler() {
return m_blobHandler; }
48 Ptr<BlobHandler<IndexedMeshBlob> > m_blobHandler;
49 IndexedMeshBlob* m_blob;
54 #endif // Navigation_InputMesh_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
The IndexedMesh class represents a 3D Triangle Mesh with Indexing.
Definition: indexedmesh.h:24
#define KY_NULL
Null value.
Definition: types.h:247
Definition: gamekitcrowddispersion.h:20
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36
float KyFloat32
Type used internally to represent a 32-bit floating-point number.
Definition: types.h:43