|
Colobot
|
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::Vector & | GetPosition () const |
| Returns the mesh position. | |
| void | SetPosition (const Math::Vector &position) |
| Sets the mesh rotation. | |
| const Math::Vector & | GetRotation () const |
| Returns the mesh rotation. | |
| void | SetRotation (const Math::Vector &rotation) |
| Sets the mesh rotation. | |
| const Math::Vector & | GetScale () 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. | |
Mesh data saved in model file.
1.8.9.1