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

A cone centered at origin tip pointing towards z-axis. More...

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

Public Types

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

Public Member Functions

 ConeMesh (double radius=1.0, double size=1.0, int slices=32, int segments=8, 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 cone centered at origin tip pointing towards z-axis.

Member Typedef Documentation

◆ Impl

◆ Triangles

◆ Vertices

Constructor & Destructor Documentation

◆ ConeMesh()

CeresEngine::MeshGenerator::ConeMesh::ConeMesh ( double  radius = 1.0,
double  size = 1.0,
int  slices = 32,
int  segments = 8,
double  start = 0.0,
double  sweep = radians(360.0) 
)
Parameters
radiusRadius of the negative z end on the xy-plane.
sizeHalf of the length of the cylinder along the z-axis.
slicesNumber of subdivisions around the z-axis.
segmentsNumber subdivisions along the z-axis.
startCounterclockwise angle around the z-axis relative to the x-axis.
sweepCounterclockwise angle around the z-axis.

Member Function Documentation

◆ triangles()

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

◆ vertices()

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

Member Data Documentation

◆ mAxisSwapMesh

Impl CeresEngine::MeshGenerator::ConeMesh::mAxisSwapMesh
private

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