|
Unravel Engine C++ 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 |
Capsule (cylinder with spherical caps) centered at origin aligned along z-axis.
Definition at line 14 of file capsule_mesh.hpp.
| using generator::capsule_mesh_t::triangles_t = typename impl_t::triangles_t |
Definition at line 35 of file capsule_mesh.hpp.
| using generator::capsule_mesh_t::vertices_t = typename impl_t::vertices_t |
Definition at line 42 of file capsule_mesh.hpp.
| 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) ) |
| 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.
|
inlinenoexcept |
Definition at line 37 of file capsule_mesh.hpp.
|
inlinenoexcept |
Definition at line 44 of file capsule_mesh.hpp.