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

#include <capped_cone_mesh.hpp>

Public Types

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

Public Member Functions

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

Detailed Description

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

Definition at line 16 of file capped_cone_mesh.hpp.

Member Typedef Documentation

◆ triangles_t

using generator::capped_cone_mesh_t::triangles_t = typename impl_t::triangles_t

Definition at line 39 of file capped_cone_mesh.hpp.

◆ vertices_t

using generator::capped_cone_mesh_t::vertices_t = typename impl_t::vertices_t

Definition at line 46 of file capped_cone_mesh.hpp.

Constructor & Destructor Documentation

◆ capped_cone_mesh_t()

capped_cone_mesh_t::capped_cone_mesh_t ( double radius = 1.0,
double size = 1.0,
int slices = 32,
int segments = 8,
int rings = 4,
double start = 0.0,
double sweep = gml::radians(360.0) )
Parameters
radiusRadius of the flat (negative z) end along the xy-plane.
sizeHalf of the length of the cylinder along the z-axis.
slicesNumber of subdivisions around the z-axis.
segmentsNumber of subdivisions along the z-axis.
ringsNumber of subdivisions of the cap.
startCounterclockwise angle around the z-axis relative to the positive x-axis.
sweepCounterclockwise angle around the z-axis.

Definition at line 5 of file capped_cone_mesh.cpp.

Member Function Documentation

◆ triangles()

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

Definition at line 41 of file capped_cone_mesh.hpp.

◆ vertices()

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

Definition at line 48 of file capped_cone_mesh.hpp.


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