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

Regular icosahedron centered at origin with given radius. More...

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

Classes

class  Triangles
 
class  Vertices
 

Public Member Functions

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

Private Attributes

double mRadius
 
int mSegments
 
int faceVertexCount_
 

Detailed Description

Regular icosahedron centered at origin with given radius.

Constructor & Destructor Documentation

◆ IcosahedronMesh()

CeresEngine::MeshGenerator::IcosahedronMesh::IcosahedronMesh ( double  radius = 1.0,
int  segments = 1 
)
Parameters
radiusThe radius of the enclosing sphere.
segmentsThe number segments along each edge. Must be >= 1.

Member Function Documentation

◆ triangles()

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

◆ vertices()

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

Member Data Documentation

◆ faceVertexCount_

int CeresEngine::MeshGenerator::IcosahedronMesh::faceVertexCount_
private

◆ mRadius

double CeresEngine::MeshGenerator::IcosahedronMesh::mRadius
private

◆ mSegments

int CeresEngine::MeshGenerator::IcosahedronMesh::mSegments
private

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