Unravel Engine C++ Reference
Loading...
Searching...
No Matches
generator::capped_tube_mesh_t Class Reference

#include <capped_tube_mesh.hpp>

Public Types

using triangles_t = typename impl_t::triangles_t
 
using vertices_t = typename impl_t::vertices_t
 

Public Member Functions

 capped_tube_mesh_t (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=gml::radians(360.0))
 
triangles_t triangles () const noexcept
 
vertices_t vertices () const noexcept
 

Detailed Description

Like TubeMesh but with end caps.

Definition at line 43 of file capped_tube_mesh.hpp.

Member Typedef Documentation

◆ triangles_t

using generator::capped_tube_mesh_t::triangles_t = typename impl_t::triangles_t

Definition at line 67 of file capped_tube_mesh.hpp.

◆ vertices_t

using generator::capped_tube_mesh_t::vertices_t = typename impl_t::vertices_t

Definition at line 74 of file capped_tube_mesh.hpp.

Constructor & Destructor Documentation

◆ capped_tube_mesh_t()

capped_tube_mesh_t::capped_tube_mesh_t ( 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 = gml::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.
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.

Definition at line 18 of file capped_tube_mesh.cpp.

Member Function Documentation

◆ triangles()

triangles_t generator::capped_tube_mesh_t::triangles ( ) const
inlinenoexcept

Definition at line 69 of file capped_tube_mesh.hpp.

◆ vertices()

vertices_t generator::capped_tube_mesh_t::vertices ( ) const
inlinenoexcept

Definition at line 76 of file capped_tube_mesh.hpp.


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