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

A shape with values evaluated using a callback function. More...

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

Classes

class  Edges
 
class  Vertices
 

Public Member Functions

 ParametricShape (Function< ShapeVertex(double) const > eval, int segments=16) noexcept
 
Edges edges () const noexcept
 
Vertices vertices () const noexcept
 

Private Attributes

Function< ShapeVertex(double) constmEval
 
int mSegments
 
double mDelta
 

Detailed Description

A shape with values evaluated using a callback function.

Constructor & Destructor Documentation

◆ ParametricShape()

CeresEngine::MeshGenerator::ParametricShape::ParametricShape ( Function< ShapeVertex(double) const eval,
int  segments = 16 
)
explicitnoexcept
Parameters
evalA callback that returns a ShapeVertex for a given value.
segmentsThe number of segments along the shape. Should be >= 1. Zero yields an empty shape.

Member Function Documentation

◆ edges()

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

◆ vertices()

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

Member Data Documentation

◆ mDelta

double CeresEngine::MeshGenerator::ParametricShape::mDelta
private

◆ mEval

Function<ShapeVertex(double) const> CeresEngine::MeshGenerator::ParametricShape::mEval
private

◆ mSegments

int CeresEngine::MeshGenerator::ParametricShape::mSegments
private

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