An interface for the triangle meshes. More...

#include <trianglemesh.h>

Inheritance diagram for TriangleMesh:
Asset Clonable Component SIMDAlignedType TriangleMesh_Obj TriangleMesh_Raw

Public Member Functions

 LM_INTERFACE_CLASS (TriangleMesh, Asset, 6)
 
 LM_DISABLE_COPY_AND_MOVE (TriangleMesh)
 
 LM_INTERFACE_F (0, NumVertices, int())
 
 LM_INTERFACE_F (1, NumFaces, int())
 
 LM_INTERFACE_F (2, Positions, const Float *())
 
 LM_INTERFACE_F (3, Normals, const Float *())
 
 LM_INTERFACE_F (4, Texcoords, const Float *())
 
 LM_INTERFACE_F (5, Faces, const unsigned int *())
 
- Public Member Functions inherited from Asset
 LM_INTERFACE_CLASS (Asset, Clonable, 2)
 
 LM_DISABLE_COPY_AND_MOVE (Asset)
 
 LM_INTERFACE_F (0, Load, bool(const PropertyNode *prop, Assets *assets, const Primitive *primitive))
 Load an asset from a property node. More...
 
 LM_INTERFACE_F (1, PostLoad, bool(const Scene *scene))
 Post processing of the asset. More...
 
- Public Member Functions inherited from Clonable
 LM_INTERFACE_CLASS (Clonable, Component, 1)
 
 LM_DISABLE_COPY_AND_MOVE (Clonable)
 
 LM_INTERFACE_F (0, Clone, void(Clonable *o))
 Clone the instalce. More...
 
- Public Member Functions inherited from SIMDAlignedType
void * operator new (std::size_t size) throw (std::bad_alloc)
 
void operator delete (void *p)
 

Detailed Description

An interface for the triangle meshes.

Member Function Documentation

TriangleMesh::LM_INTERFACE_F ( ,
NumVertices  ,
int()   
)

Get the number of vertices.

Returns
The number of vertices.
TriangleMesh::LM_INTERFACE_F ( ,
NumFaces  ,
int()   
)

Get the number of faces.

Returns
The number of faces.
TriangleMesh::LM_INTERFACE_F ( ,
Positions  ,
const Float *  () 
)

Get the position array.

Returns
The position array.
TriangleMesh::LM_INTERFACE_F ( ,
Normals  ,
const Float *  () 
)

Get the normal array.

Returns
The normal array.
TriangleMesh::LM_INTERFACE_F ( ,
Texcoords  ,
const Float *  () 
)

Get the texture coordinates array.

Returns
The texture coordinates array.
TriangleMesh::LM_INTERFACE_F ( ,
Faces  ,
const unsigned int *  () 
)

Get the face array.

Returns
The face array.