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

#include <capsule_mesh.hpp>

Public Types

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

Public Member Functions

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

Detailed Description

Capsule (cylinder with spherical caps) centered at origin aligned along z-axis.

Definition at line 14 of file capsule_mesh.hpp.

Member Typedef Documentation

◆ triangles_t

using generator::capsule_mesh_t::triangles_t = typename impl_t::triangles_t

Definition at line 35 of file capsule_mesh.hpp.

◆ vertices_t

using generator::capsule_mesh_t::vertices_t = typename impl_t::vertices_t

Definition at line 42 of file capsule_mesh.hpp.

Constructor & Destructor Documentation

◆ capsule_mesh_t()

capsule_mesh_t::capsule_mesh_t ( double radius = 1.0,
double size = 0.5,
int slices = 32,
int segments = 4,
int rings = 8,
double start = 0.0,
double sweep = gml::radians(360.0) )
Parameters
radiusRadius of the capsule on the xy-plane.
sizeHalf of the length between centers of the caps along the z-axis.
slicesNumber of subdivisions around the z-axis.
ringsNumber of radial subdivisions in the caps.
startCounterclockwise angle relative to the x-axis.
sweepCounterclockwise angle.

Definition at line 5 of file capsule_mesh.cpp.

Member Function Documentation

◆ triangles()

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

Definition at line 37 of file capsule_mesh.hpp.

◆ vertices()

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

Definition at line 44 of file capsule_mesh.hpp.


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