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

A 2d regular grid. More...

#include <CeresEngine/Mesh/Generator/GridShape.hpp>

Public Types

using Edges = Impl::Edges
 
using Vertices = Impl::Vertices
 

Public Member Functions

 GridShape (const Vector2 &size={1.0, 1.0}, const Vector2i &segments={4, 4}, const Vector2i &subSegments={2, 2}) noexcept
 
Edges edges () const noexcept
 
Vertices vertices () const noexcept
 

Private Types

using Impl = MergeShape< RepeatShape< LineShape >, RepeatShape< LineShape > >
 

Private Attributes

Impl mImpl
 

Detailed Description

A 2d regular grid.

Member Typedef Documentation

◆ Edges

◆ Impl

◆ Vertices

Constructor & Destructor Documentation

◆ GridShape()

CeresEngine::MeshGenerator::GridShape::GridShape ( const Vector2 size = {1.0, 1.0},
const Vector2i &  segments = {4, 4},
const Vector2i &  subSegments = {2, 2} 
)
explicitnoexcept
Parameters
sizeA half of the side length of the grid.
segmentsThe Number of cells in the grid. If <1 an empty shape results.
subSegmentsThe number of segment along each cell edge. If <1 an empty shape results.

Member Function Documentation

◆ edges()

Edges CeresEngine::MeshGenerator::GridShape::edges ( ) const
noexcept

◆ vertices()

Vertices CeresEngine::MeshGenerator::GridShape::vertices ( ) const
noexcept

Member Data Documentation

◆ mImpl

Impl CeresEngine::MeshGenerator::GridShape::mImpl
private

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