IIndexedMesh

#include

Classes

struct SMeshDescription

Public Member Functions

virtual void Release ()=0
Release indexed mesh.
virtual void GetMeshDescription (SMeshDescription &meshDesc) const =0
Gives read-only access to mesh data.
virtual CMesh * GetMesh ()=0
virtual void SetMesh (CMesh &mesh)=0
virtual void FreeStreams ()=0
Frees vertex and face streams. Calling this function invalidates SMeshDescription pointers.
virtual int GetFaceCount () const =0
Return number of allocated faces.
virtual void SetFaceCount (int nNewCount)=0
Reallocates faces. Calling this function invalidates SMeshDescription pointers.
virtual int GetVertexCount () const =0
Return number of allocated vertices, normals and colors.
virtual void SetVertexCount (int nNewCount)=0
Reallocates vertices, normals and colors. Calling this function invalidates SMeshDescription pointers.
virtual void SetColorCount (int nNewCount)=0
Reallocates colors. Calling this function invalidates SMeshDescription pointers.
virtual int GetTexCoordCount () const =0
Return number of allocated texture coordinates.
virtual void SetTexCoordCount (int nNewCount)=0
Reallocates texture coordinates. Calling this function invalidates SMeshDescription pointers.
virtual int GetTangentCount () const =0
Return number of allocated tangents.
virtual void SetTangentCount (int nNewCount)=0
Reallocates tangents. Calling this function invalidates SMeshDescription pointers.
virtual int GetIndexCount () const =0
Get number of indices in the mesh.
virtual void SetIndexCount (int nNewCount)=0
Set number of indices in the mesh.
virtual void AllocateBoneMapping ()=0
Allocates m_pBoneMapping in CMesh.
virtual int GetSubSetCount () const =0
virtual void SetSubSetCount (int nSubsets)=0
virtual const SMeshSubset & GetSubSet (int nIndex) const =0
virtual void SetSubsetBounds (int nIndex, const Vec3 &vCenter, float fRadius)=0
virtual void SetSubsetIndexVertexRanges (int nIndex, int nFirstIndexId, int nNumIndices, int nFirstVertId, int nNumVerts)=0
virtual void SetSubsetMaterialId (int nIndex, int nMatID)=0
virtual void SetSubsetMaterialProperties (int nIndex, int nMatFlags, int nPhysicalizeType)=0
virtual void SetBBox (const AABB &box)=0
virtual AABB GetBBox () const =0
virtual void CalcBBox ()=0
virtual void RestoreFacesFromIndices ()=0

Detailed Description

Editable mesh interface. IndexedMesh can be created directly or loaded from CGF file, before rendering it is converted into IRenderMesh. IStatObj is used to host IIndexedMesh, and corresponding IRenderMesh.