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

A circular disk centered at origin on the xy-plane. More...

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

Public Types

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

Public Member Functions

 DiskMesh (double radius=1.0, double innerRadius=0.0, int slices=32, int rings=4, double start=0.0, double sweep=radians(360.0))
 
Triangles triangles () const noexcept
 
Vertices vertices () const noexcept
 

Private Types

using Impl = AxisSwapMesh< LatheMesh< LineShape > >
 

Private Attributes

Impl mAxisSwapMesh
 

Detailed Description

A circular disk centered at origin on the xy-plane.

Member Typedef Documentation

◆ Impl

◆ Triangles

◆ Vertices

Constructor & Destructor Documentation

◆ DiskMesh()

CeresEngine::MeshGenerator::DiskMesh::DiskMesh ( double  radius = 1.0,
double  innerRadius = 0.0,
int  slices = 32,
int  rings = 4,
double  start = 0.0,
double  sweep = radians(360.0) 
)
Parameters
radiusOuter radius of the disk on the xy-plane.
innerRadiusradius of the inner circle on the xy-plane.
slicesNumber of subdivisions around the z-axis.
ringsNumber of subdivisions along the radius.
startCounterclockwise angle relative to the x-axis
sweepCounterclockwise angle.

Member Function Documentation

◆ triangles()

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

◆ vertices()

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

Member Data Documentation

◆ mAxisSwapMesh

Impl CeresEngine::MeshGenerator::DiskMesh::mAxisSwapMesh
private

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