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

Torus centered at origin on the xy-plane. More...

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

Public Types

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

Public Member Functions

 TorusMesh (double minor=0.25, double major=1.0, int slices=16, int segments=32, double minorStart=0.0, double minorSweep=radians(360.0), double majorStart=0.0, double majorSweep=radians(360.0))
 
Triangles triangles () const noexcept
 
Vertices vertices () const noexcept
 

Private Types

using Impl = AxisSwapMesh< LatheMesh< TranslateShape< CircleShape > > >
 

Private Attributes

Impl mAxisSwapMesh
 

Detailed Description

Torus centered at origin on the xy-plane.

Member Typedef Documentation

◆ Impl

◆ Triangles

◆ Vertices

Constructor & Destructor Documentation

◆ TorusMesh()

CeresEngine::MeshGenerator::TorusMesh::TorusMesh ( double  minor = 0.25,
double  major = 1.0,
int  slices = 16,
int  segments = 32,
double  minorStart = 0.0,
double  minorSweep = radians(360.0),
double  majorStart = 0.0,
double  majorSweep = radians(360.0) 
)
Parameters
minorRadius of the minor (inner) ring
majorRadius of the major (outer) ring
slicesSubdivisions around the minor ring
segmentsSubdivisions around the major ring
minorStartCounterclockwise angle relative to the xy-plane.
minorSweepCounterclockwise angle around the circle.
majorStartCounterclockwise angle around the z-axis relative to the x-axis.
majorSweepCounterclockwise angle around the z-axis.

Member Function Documentation

◆ triangles()

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

◆ vertices()

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

Member Data Documentation

◆ mAxisSwapMesh

Impl CeresEngine::MeshGenerator::TorusMesh::mAxisSwapMesh
private

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