|
CeresEngine 0.2.0
A game development framework
|
A sphere of the given radius centered around the origin. More...
#include <CeresEngine/Mesh/Generator/SphereMesh.hpp>
Public Types | |
| using | Triangles = typename Impl::Triangles |
| using | Vertices = typename Impl::Vertices |
Public Member Functions | |
| SphereMesh (double radius=1.0, int slices=32, int segments=16, double sliceStart=0.0, double sliceSweep=radians(360.0), double segmentStart=0.0, double segmentSweep=radians(180.0)) | |
| Triangles | triangles () const noexcept |
| Vertices | vertices () const noexcept |
Private Types | |
| using | Impl = AxisSwapMesh< LatheMesh< CircleShape > > |
Private Attributes | |
| Impl | mAxisSwapMesh |
A sphere of the given radius centered around the origin.
Subdivided around the z-axis in slices and along the z-axis in segments.
| using CeresEngine::MeshGenerator::SphereMesh::Triangles = typename Impl::Triangles |
| CeresEngine::MeshGenerator::SphereMesh::SphereMesh | ( | double | radius = 1.0, |
| int | slices = 32, |
||
| int | segments = 16, |
||
| double | sliceStart = 0.0, |
||
| double | sliceSweep = radians(360.0), |
||
| double | segmentStart = 0.0, |
||
| double | segmentSweep = radians(180.0) |
||
| ) |
| radius | The radius of the sphere |
| slices | Subdivisions around the z-azis (longitudes). |
| segments | Subdivisions along the z-azis (latitudes). |
| sliceStart | Counterclockwise angle around the z-axis relative to x-axis. |
| sliceSweep | Counterclockwise angle. |
| segmentStart | Counterclockwise angle relative to the z-axis. |
| segmentSweep | Counterclockwise angle. |
|
inlinenoexcept |
|
inlinenoexcept |
|
private |