CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::MeshGenerator::PlaneMesh Class Reference

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
 

Detailed Description

A plane (rectangular grid) on the xy -plane normal pointing towards z-axis.

Member Typedef Documentation

◆ Impl

◆ Triangles

◆ Vertices

Constructor & Destructor Documentation

◆ PlaneMesh()

CeresEngine::MeshGenerator::PlaneMesh::PlaneMesh ( const Vector2 size = {1.0, 1.0},
const Vector2i &  segments = {8, 8} 
)
Parameters
sizeHalf of the side length in x (0) and y (1) direction.
segmentsNumber of subdivisions in the x (0) and y (1) direction.

Member Function Documentation

◆ triangles()

Triangles CeresEngine::MeshGenerator::PlaneMesh::triangles ( ) const
inlinenoexcept

◆ vertices()

Vertices CeresEngine::MeshGenerator::PlaneMesh::vertices ( ) const
inlinenoexcept

Member Data Documentation

◆ mParametricMesh

Impl CeresEngine::MeshGenerator::PlaneMesh::mParametricMesh
private

The documentation for this class was generated from the following file: