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

Like TubeMesh but with end caps. More...

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

Public Types

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

Public Member Functions

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

Private Types

using Impl = MergeMesh< TubeMesh, detail::TubeCap, FlipMesh< detail::TubeCap > >
 

Private Attributes

Impl mMergeMesh
 

Detailed Description

Like TubeMesh but with end caps.

Member Typedef Documentation

◆ Impl

◆ Triangles

◆ Vertices

Constructor & Destructor Documentation

◆ CappedTubeMesh()

CeresEngine::MeshGenerator::CappedTubeMesh::CappedTubeMesh ( double  radius = 1.0,
double  innerRadius = 0.75,
double  size = 1.0,
int  slices = 32,
int  segments = 8,
int  rings = 1,
double  start = 0.0,
double  sweep = radians(360.0) 
)
explicit
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.
slicesNumber nubdivisions around the z-axis.
segmentsNumber of subdivisions along the z-axis.
ringsNumber radial subdivisions in the cap.
startCounterclockwise angle around the z-axis relative to the x-axis.
sweepCounterclockwise angle around the z-axis.

Member Function Documentation

◆ triangles()

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

◆ vertices()

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

Member Data Documentation

◆ mMergeMesh

Impl CeresEngine::MeshGenerator::CappedTubeMesh::mMergeMesh
private

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