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

#include <tube_mesh.hpp>

Public Types

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

Public Member Functions

 tube_mesh_t (double radius=1.0, double innerRadius=0.75, double size=1.0, int slices=32, int segments=8, double start=0.0, double sweep=gml::radians(360.0))
 
triangles_t triangles () const noexcept
 
vertices_t vertices () const noexcept
 

Detailed Description

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

Definition at line 14 of file tube_mesh.hpp.

Member Typedef Documentation

◆ triangles_t

using generator::tube_mesh_t::triangles_t = typename impl_t::triangles_t

Definition at line 36 of file tube_mesh.hpp.

◆ vertices_t

using generator::tube_mesh_t::vertices_t = typename impl_t::vertices_t

Definition at line 43 of file tube_mesh.hpp.

Constructor & Destructor Documentation

◆ tube_mesh_t()

tube_mesh_t::tube_mesh_t ( double radius = 1.0,
double innerRadius = 0.75,
double size = 1.0,
int slices = 32,
int segments = 8,
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.
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.

Definition at line 5 of file tube_mesh.cpp.

Member Function Documentation

◆ triangles()

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

Definition at line 38 of file tube_mesh.hpp.

◆ vertices()

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

Definition at line 45 of file tube_mesh.hpp.


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