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

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

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

Public Types

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

Public Member Functions

 SphericalConeMesh (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 = TranslateMesh< MergeMesh< ConeMesh, AxisFlipMesh< TranslateMesh< SphereMesh > > > >
 

Private Attributes

Impl mTranslateMesh
 

Detailed Description

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

Each point on the cap has equal distance from the tip.

Member Typedef Documentation

◆ Impl

◆ Triangles

◆ Vertices

Constructor & Destructor Documentation

◆ SphericalConeMesh()

CeresEngine::MeshGenerator::SphericalConeMesh::SphericalConeMesh ( 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 negative z end on the xy-plane.
sizeHalf of the distance between cap and tip along the z-axis.
slicesNumber of subdivisions around the z-axis.
segmentsNumber subdivisions along the z-axis.
ringsNumber subdivisions in 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::SphericalConeMesh::triangles ( ) const
inlinenoexcept

◆ vertices()

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

Member Data Documentation

◆ mTranslateMesh

Impl CeresEngine::MeshGenerator::SphericalConeMesh::mTranslateMesh
private

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