Colobot
Public Member Functions | List of all members
Gfx::CModelMesh Class Reference

Mesh data saved in model file. More...

#include <model_mesh.h>

Public Member Functions

void AddTriangle (const ModelTriangle &triangle)
 Adds a new triangle.
 
void SetTriangles (std::vector< ModelTriangle > &&triangles)
 Sets the list of triangles.
 
const std::vector< ModelTriangle > & GetTriangles () const
 Returns the list of triangles.
 
int GetTriangleCount () const
 Returns number of triangles.
 
const Math::VectorGetPosition () const
 Returns the mesh position.
 
void SetPosition (const Math::Vector &position)
 Sets the mesh rotation.
 
const Math::VectorGetRotation () const
 Returns the mesh rotation.
 
void SetRotation (const Math::Vector &rotation)
 Sets the mesh rotation.
 
const Math::VectorGetScale () const
 Returns the mesh scale.
 
void SetScale (const Math::Vector &scale)
 Sets the mesh scale.
 
const std::string & GetParent () const
 Returns the name of parent mesh.
 
void SetParent (const std::string &parent)
 Sets the name of parent mesh.
 

Detailed Description

Mesh data saved in model file.


The documentation for this class was generated from the following files: