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

Tube (thick cylinder) centered at origin aligned along the z-axis. More...

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

Public Types

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

Public Member Functions

 TubeMesh (double radius=1.0, double innerRadius=0.75, 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 = MergeMesh< CylinderMesh, FlipMesh< UvFlipMesh< CylinderMesh > > >
 

Private Attributes

Impl mMergeMesh
 

Detailed Description

Tube (thick cylinder) centered at origin aligned along the z-axis.

Member Typedef Documentation

◆ Impl

◆ Triangles

◆ Vertices

Constructor & Destructor Documentation

◆ TubeMesh()

CeresEngine::MeshGenerator::TubeMesh::TubeMesh ( double  radius = 1.0,
double  innerRadius = 0.75,
double  size = 1.0,
int  slices = 32,
int  segments = 8,
double  start = 0.0,
double  sweep = radians(360.0) 
)
Parameters
radiusThe outer radius of the cylinder on the xy-plane.
innerRadiusThe inner radius of the cylinder on the xy-plane.
sizeHalf of the length of the cylinder along the z-axis.
slicesSubdivisions around the z-axis.
segmentsSubdivisions 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::TubeMesh::triangles ( ) const
inlinenoexcept

◆ vertices()

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

Member Data Documentation

◆ mMergeMesh

Impl CeresEngine::MeshGenerator::TubeMesh::mMergeMesh
private

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