|
t
|
The triangular 3D mesh class. More...
#include <Mesh.hpp>
Public Member Functions | |
| Mesh (Geometry &_geometry, Material &_material) | |
| Creates a new mesh with the specified geometry and material. | |
| bool | isMesh () const override |
| Returns whether this 3D object is a mesh. | |
Public Member Functions inherited from t::Object3D | |
| virtual bool | isLight () const |
| Returns whether this 3D object is a light. | |
| Object3D & | add (Object3D &child) |
| Adds another 3D object as a child of this 3D object. | |
| Object3D & | translate (double x, double y, double z) |
| Translates this 3D object by the specified amounts along the x, y, and z axes in local space. | |
| Object3D & | rotate (double x, double y, double z, EulerRotationOrder order) |
| Rotates this 3D object by the specified angles around the x, y, and z axes in local space. | |
| Object3D & | scale (double x, double y, double z) |
| Scales this 3D object by the specified amounts along the x, y, and z axes in local space. | |
| Object3D & | updateLocalMatrix () |
| Updates the local transformation matrix of this 3D object. | |
| Object3D & | updateModelMatrix () |
| Updates the model matrix of this 3D object. | |
Public Attributes | |
| Geometry & | geometry |
| The geometry of this mesh. | |
| Material & | material |
| The material of this mesh. | |
Public Attributes inherited from t::Object3D | |
| std::optional< std::reference_wrapper< Object3D > > | parent |
| The parent of this 3D object. | |
| Vector3 | up = DEFAULT_UP |
| The vector pointing to the up direction in object space. | |
| Vector3 | localPosition |
| The position of this 3D object relative to its parent. | |
| EulerRotation | localRotation |
| The rotation of this 3D object relative to its parent. | |
| Vector3 | localScale |
| The scale of this 3D object relative to its parent. | |
| Matrix4x4 | localMatrix |
| The matrix of the local transformation of this 3D object. | |
| Matrix4x4 | modelMatrix |
| The model matrix of this 3D object, transformating local space to world space. | |
| std::vector< std::reference_wrapper< Object3D > > | children |
| The children of this 3D object. | |
The triangular 3D mesh class.
A mesh has a shape (geometry) and a look (material).
Creates a new mesh with the specified geometry and material.
| _geometry | The geometry of the mesh. |
| _material | The material of the mesh. |
|
inlineoverridevirtual |
Returns whether this 3D object is a mesh.
Used internally for type checking before casting an Object3D to a Mesh.
true Reimplemented from t::Object3D.