|
CeresEngine 0.2.0
A game development framework
|
A cone with a cap centered at origin pointing towards positive z-axis. More...
#include <CeresEngine/Mesh/Generator/CappedConeMesh.hpp>
Public Types | |
| using | Triangles = typename Impl::Triangles |
| using | Vertices = typename Impl::Vertices |
Public Member Functions | |
| CappedConeMesh (double radius=1.0, double size=1.0, int slices=32, int segments=8, int rings=4, double start=0.0, double sweep=radians(360.0)) | |
| Triangles | triangles () const noexcept |
| Vertices | vertices () const noexcept |
Private Types | |
| using | Impl = MergeMesh< ConeMesh, UvFlipMesh< FlipMesh< TranslateMesh< DiskMesh > > > > |
Private Attributes | |
| Impl | mMergeMesh |
A cone with a cap centered at origin pointing towards positive z-axis.
|
private |
| using CeresEngine::MeshGenerator::CappedConeMesh::Triangles = typename Impl::Triangles |
| using CeresEngine::MeshGenerator::CappedConeMesh::Vertices = typename Impl::Vertices |
| CeresEngine::MeshGenerator::CappedConeMesh::CappedConeMesh | ( | double | radius = 1.0, |
| double | size = 1.0, |
||
| int | slices = 32, |
||
| int | segments = 8, |
||
| int | rings = 4, |
||
| double | start = 0.0, |
||
| double | sweep = radians(360.0) |
||
| ) |
| radius | Radius of the flat (negative z) end along the xy-plane. |
| size | Half of the length of the cylinder along the z-axis. |
| slices | Number of subdivisions around the z-axis. |
| segments | Number of subdivisions along the z-axis. |
| rings | Number of subdivisions of the cap. |
| start | Counterclockwise angle around the z-axis relative to the positive x-axis. |
| sweep | Counterclockwise angle around the z-axis. |
|
inlinenoexcept |
|
inlinenoexcept |
|
private |