|
CeresEngine 0.2.0
A game development framework
|
A cone with a spherical cap centered at origin tip pointing towards z-axis. More...
#include <CeresEngine/Mesh/Generator/SphericalConeMesh.hpp>
Public Types | |
| using | Triangles = typename Impl::Triangles |
| using | Vertices = typename Impl::Vertices |
Public Member Functions | |
| SphericalConeMesh (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 = TranslateMesh< MergeMesh< ConeMesh, AxisFlipMesh< TranslateMesh< SphereMesh > > > > |
Private Attributes | |
| Impl | mTranslateMesh |
A cone with a spherical cap centered at origin tip pointing towards z-axis.
Each point on the cap has equal distance from the tip.
|
private |
| CeresEngine::MeshGenerator::SphericalConeMesh::SphericalConeMesh | ( | 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 negative z end on the xy-plane. |
| size | Half of the distance between cap and tip along the z-axis. |
| slices | Number of subdivisions around the z-axis. |
| segments | Number subdivisions along the z-axis. |
| rings | Number subdivisions in 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 |