t
Loading...
Searching...
No Matches
Mesh.hpp
1#include "geometries/Geometry.hpp"
2#include "materials/Material.hpp"
3#include "primitives/Object3D.hpp"
4#include <memory>
5
6#ifndef MESH_HPP
7#define MESH_HPP
8
9namespace t {
10
18class Mesh : public Object3D {
19public:
29 Mesh(Geometry &_geometry, Material &_material)
30 : geometry(_geometry), material(_material) {};
31
40 bool isMesh() const override { return true; }
41};
42
43} // namespace t
44
45#endif // MESH_HPP
The base 3D geometry class.
Definition Geometry.hpp:37
The base material class.
Definition Material.hpp:24
The triangular 3D mesh class.
Definition Mesh.hpp:18
Material & material
The material of this mesh.
Definition Mesh.hpp:21
Geometry & geometry
The geometry of this mesh.
Definition Mesh.hpp:20
bool isMesh() const override
Returns whether this 3D object is a mesh.
Definition Mesh.hpp:40
Mesh(Geometry &_geometry, Material &_material)
Creates a new mesh with the specified geometry and material.
Definition Mesh.hpp:29
The 3D object class.
Definition Object3D.hpp:24
The t software 3D graphics library namespace.
Definition algorithms.hpp:12