|
CeresEngine 0.2.0
A game development framework
|
Cylinder centered at origin aligned along the z-axis. More...
#include <CeresEngine/Mesh/Generator/CylinderMesh.hpp>
Public Types | |
| using | Triangles = typename Impl::Triangles |
| using | Vertices = typename Impl::Vertices |
Public Member Functions | |
| CylinderMesh (double radius=1.0, double size=1.0, int slices=32, int segments=8, double start=0.0, double sweep=radians(360.0)) | |
| Triangles | triangles () const noexcept |
| Vertices | vertices () const noexcept |
Private Types | |
| using | Impl = AxisSwapMesh< LatheMesh< LineShape > > |
Private Attributes | |
| Impl | mAxisSwapMesh |
Cylinder centered at origin aligned along the z-axis.
| using CeresEngine::MeshGenerator::CylinderMesh::Triangles = typename Impl::Triangles |
| CeresEngine::MeshGenerator::CylinderMesh::CylinderMesh | ( | double | radius = 1.0, |
| double | size = 1.0, |
||
| int | slices = 32, |
||
| int | segments = 8, |
||
| double | start = 0.0, |
||
| double | sweep = radians(360.0) |
||
| ) |
| radius | Radius of the cylinder along the xy-plane. |
| size | Half of the length of the cylinder along the z-axis. |
| slices | Subdivisions around the z-axis. |
| segments | Subdivisions along the z-axis. |
| start | Counterclockwise angle around the z-axis relative to the x-axis. |
| sweep | Counterclockwise angle around the z-axis. |
|
inlinenoexcept |
|
inlinenoexcept |
|
private |