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

A regular dodecahedron centered at origin with given radius. More...

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

Classes

class  Triangles
 
class  Vertices
 

Public Member Functions

 DodecahedronMesh (double radius=1.0, int segments=1, int rings=1) noexcept
 
Triangles triangles () const noexcept
 
Vertices vertices () const noexcept
 

Private Attributes

double mRadius
 
int mSegments
 
int mRings
 
int mFaceVertexCount
 

Detailed Description

A regular dodecahedron centered at origin with given radius.

Each face optionally subdivided along edges and/or radius.

Constructor & Destructor Documentation

◆ DodecahedronMesh()

CeresEngine::MeshGenerator::DodecahedronMesh::DodecahedronMesh ( double  radius = 1.0,
int  segments = 1,
int  rings = 1 
)
explicitnoexcept
Parameters
radiusThe radius of the enclosing sphere.
segmentsThe number segments along each edge. Should be >= 1. If <1 empty mesh is generated.
ringsThe number of radial segments on each face. Should be >= 1. If <1 an empty mesh is generated.

Member Function Documentation

◆ triangles()

Triangles CeresEngine::MeshGenerator::DodecahedronMesh::triangles ( ) const
noexcept

◆ vertices()

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

Member Data Documentation

◆ mFaceVertexCount

int CeresEngine::MeshGenerator::DodecahedronMesh::mFaceVertexCount
private

◆ mRadius

double CeresEngine::MeshGenerator::DodecahedronMesh::mRadius
private

◆ mRings

int CeresEngine::MeshGenerator::DodecahedronMesh::mRings
private

◆ mSegments

int CeresEngine::MeshGenerator::DodecahedronMesh::mSegments
private

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