22 #include "graphics/model/model_triangle.h" 41 void SetTriangles(std::vector<ModelTriangle> &&triangles);
65 void SetParent(
const std::string& parent);
68 std::vector<ModelTriangle> m_triangles;
void SetRotation(const Math::Vector &rotation)
Sets the mesh rotation.
Definition: model_mesh.cpp:60
void SetParent(const std::string &parent)
Sets the name of parent mesh.
Definition: model_mesh.cpp:80
void SetPosition(const Math::Vector &position)
Sets the mesh rotation.
Definition: model_mesh.cpp:50
const Math::Vector & GetScale() const
Returns the mesh scale.
Definition: model_mesh.cpp:65
void SetScale(const Math::Vector &scale)
Sets the mesh scale.
Definition: model_mesh.cpp:70
const std::string & GetParent() const
Returns the name of parent mesh.
Definition: model_mesh.cpp:75
void SetTriangles(std::vector< ModelTriangle > &&triangles)
Sets the list of triangles.
Definition: model_mesh.cpp:30
Mesh data saved in model file.
Definition: model_mesh.h:35
void AddTriangle(const ModelTriangle &triangle)
Adds a new triangle.
Definition: model_mesh.cpp:25
int GetTriangleCount() const
Returns number of triangles.
Definition: model_mesh.cpp:40
const std::vector< ModelTriangle > & GetTriangles() const
Returns the list of triangles.
Definition: model_mesh.cpp:35
Namespace for (new) graphics code.
Definition: app.h:49
const Math::Vector & GetPosition() const
Returns the mesh position.
Definition: model_mesh.cpp:45
Vector struct and related functions.
const Math::Vector & GetRotation() const
Returns the mesh rotation.
Definition: model_mesh.cpp:55
A single triangle in mesh as saved in model file.
Definition: model_triangle.h:60
3D (3x1) vector
Definition: vector.h:53