|
CeresEngine 0.2.0
A game development framework
|
A plane (rectangular grid) on the xy -plane normal pointing towards z-axis. More...
#include <CeresEngine/Mesh/Generator/PlaneMesh.hpp>
Public Types | |
| using | Triangles = typename Impl::Triangles |
| using | Vertices = typename Impl::Vertices |
Public Member Functions | |
| PlaneMesh (const Vector2 &size={1.0, 1.0}, const Vector2i &segments={8, 8}) | |
| Triangles | triangles () const noexcept |
| Vertices | vertices () const noexcept |
Private Types | |
| using | Impl = ParametricMesh |
Private Attributes | |
| Impl | mParametricMesh |
A plane (rectangular grid) on the xy -plane normal pointing towards z-axis.
| CeresEngine::MeshGenerator::PlaneMesh::PlaneMesh | ( | const Vector2 & | size = {1.0, 1.0}, |
| const Vector2i & | segments = {8, 8} |
||
| ) |
| size | Half of the side length in x (0) and y (1) direction. |
| segments | Number of subdivisions in the x (0) and y (1) direction. |
|
inlinenoexcept |
|
inlinenoexcept |
|
private |