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

Icosphere aka spherical subdivided icosahedron. More...

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

Public Types

using Triangles = typename Impl::Triangles
 
using Vertices = typename Impl::Vertices
 

Public Member Functions

 IcoSphereMesh (double radius=1.0, int segments=4)
 
Triangles triangles () const noexcept
 
Vertices vertices () const noexcept
 

Private Types

using Impl = SpherifyMesh< IcosahedronMesh >
 

Private Attributes

Impl mSpherifyMesh
 

Detailed Description

Icosphere aka spherical subdivided icosahedron.

Member Typedef Documentation

◆ Impl

◆ Triangles

◆ Vertices

Constructor & Destructor Documentation

◆ IcoSphereMesh()

CeresEngine::MeshGenerator::IcoSphereMesh::IcoSphereMesh ( double  radius = 1.0,
int  segments = 4 
)
Parameters
radiusThe radius of the containing sphere.
segmentsThe number of segments per icosahedron edge. Must be >= 1.

Member Function Documentation

◆ triangles()

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

◆ vertices()

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

Member Data Documentation

◆ mSpherifyMesh

Impl CeresEngine::MeshGenerator::IcoSphereMesh::mSpherifyMesh
private

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