|
CeresEngine 0.2.0
A game development framework
|
A cone centered at origin tip pointing towards z-axis. More...
#include <CeresEngine/Mesh/Generator/ConeMesh.hpp>
Public Types | |
| using | Triangles = typename Impl::Triangles |
| using | Vertices = typename Impl::Vertices |
Public Member Functions | |
| ConeMesh (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 |
A cone centered at origin tip pointing towards z-axis.
| using CeresEngine::MeshGenerator::ConeMesh::Triangles = typename Impl::Triangles |
| CeresEngine::MeshGenerator::ConeMesh::ConeMesh | ( | 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 negative z end on 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 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 |