|
CeresEngine 0.2.0
A game development framework
|
Capsule (cylinder with spherical caps) centered at origin aligned along z-axis. More...
#include <CeresEngine/Mesh/Generator/CapsuleMesh.hpp>
Public Types | |
| using | Triangles = typename Impl::Triangles |
| using | Vertices = typename Impl::Vertices |
Public Member Functions | |
| CapsuleMesh (double radius=1.0, double size=0.5, int slices=32, int segments=4, int rings=8, double start=0.0, double sweep=radians(360.0)) | |
| Triangles | triangles () const noexcept |
| Vertices | vertices () const noexcept |
Private Types | |
| using | Impl = MergeMesh< CylinderMesh, TranslateMesh< SphereMesh >, TranslateMesh< SphereMesh > > |
Private Attributes | |
| Impl | mMergeMesh |
Capsule (cylinder with spherical caps) centered at origin aligned along z-axis.
|
private |
| using CeresEngine::MeshGenerator::CapsuleMesh::Triangles = typename Impl::Triangles |
| using CeresEngine::MeshGenerator::CapsuleMesh::Vertices = typename Impl::Vertices |
| CeresEngine::MeshGenerator::CapsuleMesh::CapsuleMesh | ( | double | radius = 1.0, |
| double | size = 0.5, |
||
| int | slices = 32, |
||
| int | segments = 4, |
||
| int | rings = 8, |
||
| double | start = 0.0, |
||
| double | sweep = 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. |
|
inlinenoexcept |
|
inlinenoexcept |
|
private |