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

A cone with a cap centered at origin pointing towards positive z-axis. More...

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

Public Types

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

Public Member Functions

 CappedConeMesh (double radius=1.0, double size=1.0, int slices=32, int segments=8, int rings=4, double start=0.0, double sweep=radians(360.0))
 
Triangles triangles () const noexcept
 
Vertices vertices () const noexcept
 

Private Types

using Impl = MergeMesh< ConeMesh, UvFlipMesh< FlipMesh< TranslateMesh< DiskMesh > > > >
 

Private Attributes

Impl mMergeMesh
 

Detailed Description

A cone with a cap centered at origin pointing towards positive z-axis.

Member Typedef Documentation

◆ Impl

◆ Triangles

◆ Vertices

Constructor & Destructor Documentation

◆ CappedConeMesh()

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

Member Function Documentation

◆ triangles()

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

◆ vertices()

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

Member Data Documentation

◆ mMergeMesh

Impl CeresEngine::MeshGenerator::CappedConeMesh::mMergeMesh
private

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