gwnavruntime/collision/indexedmesh.h Source File
Go to the documentation of this file.
18 class IndexedMesh :
public RefCountBase<IndexedMesh, MemStat_CollisionData>
23 void InitFromBuilder(IndexedMeshBlobBuilder& builder);
26 KyUInt32 GetTriangleCount()
const {
return m_blob->m_indices.GetCount() / 3; }
27 KyUInt32 GetVertexCount()
const {
return m_blob->m_vertices.GetCount(); }
28 KyUInt32 GetIndexCount()
const {
return m_blob->m_indices.GetCount(); }
30 KyUInt32 GetIndexAt(
const KyUInt32 i)
const {
return m_blob->m_indices.GetValues()[i]; }
31 Vec3f GetVertexAt(
const KyUInt32 i)
const {
return m_blob->m_vertices.GetValues()[i]; }
33 const UByte* GetIndicesDataPtr()
const {
return m_blob->GetIndexBase(); }
34 const UByte* GetVerticesDataPtr()
const {
return m_blob->GetVertexBase(); }
39 KyResult WriteToObjFile(File* objFile)
const;
44 Ptr<BlobHandler<IndexedMeshBlob>> m_blobHandler;
45 IndexedMeshBlob* m_blob;
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
Wraps a IndexedMeshBlob either as IndexedMeshBlob* or as Ptr< />> Also adds ...
Definition: indexedmesh.h:18
std::uint8_t UByte
uint8_t
Definition: SF_Types.h:134
Navigation return code class.
Definition: types.h:108
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
float KyFloat32
float
Definition: types.h:32
3d vector using 32bits floating points.
Definition: vec3f.h:16