|
CeresEngine 0.2.0
A game development framework
|
Rectangular box centered at origin aligned along the x, y and z axis. More...
#include <CeresEngine/Mesh/Generator/BoxMesh.hpp>
Public Types | |
| using | Triangles = typename Impl::Triangles |
| using | Vertices = typename Impl::Vertices |
Public Member Functions | |
| BoxMesh (const Vector3 &size={1.0, 1.0, 1.0}, const Vector3i &segments={8, 8, 8}) noexcept | |
| Triangles | triangles () const noexcept |
| Vertices | vertices () const noexcept |
Private Types | |
| using | Impl = MergeMesh< AxisSwapMesh< detail::BoxFaces >, UvFlipMesh< AxisSwapMesh< detail::BoxFaces > >, detail::BoxFaces > |
Private Attributes | |
| Impl | mMergeMesh |
Rectangular box centered at origin aligned along the x, y and z axis.
|
private |
| using CeresEngine::MeshGenerator::BoxMesh::Triangles = typename Impl::Triangles |
| using CeresEngine::MeshGenerator::BoxMesh::Vertices = typename Impl::Vertices |
|
explicitnoexcept |
| size | Half of the side length in x (0), y (1) and z (2) direction. |
| segments | The number of segments in x (0), y (1) and z (2) directions. All should be >= 1. If any one is zero faces in that direction are not genereted. If more than one is zero the mesh is empty. |
|
inlinenoexcept |
|
inlinenoexcept |
|
private |