#include <capsule_mesh.hpp>
Capsule (cylinder with spherical caps) centered at origin aligned along z-axis.
Definition at line 14 of file capsule_mesh.hpp.
◆ triangles_t
◆ vertices_t
◆ 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
-
radius | Radius of the capsule on the xy-plane. |
size | Half of the length between centers of the caps along the z-axis. |
slices | Number of subdivisions around the z-axis. |
rings | Number of radial subdivisions in the caps. |
start | Counterclockwise angle relative to the x-axis. |
sweep | Counterclockwise angle. |
Definition at line 5 of file capsule_mesh.cpp.
◆ triangles()
triangles_t generator::capsule_mesh_t::triangles |
( |
| ) |
const |
|
inlinenoexcept |
◆ vertices()
vertices_t generator::capsule_mesh_t::vertices |
( |
| ) |
const |
|
inlinenoexcept |
The documentation for this class was generated from the following files:
- C:/Workspace/github/UnravelEngine/UnravelEngine/engine/engine/rendering/generator/capsule_mesh.hpp
- C:/Workspace/github/UnravelEngine/UnravelEngine/engine/engine/rendering/generator/capsule_mesh.cpp