Unravel Engine C++ Reference
|
#include <sphere_mesh.hpp>
Public Types | |
using | triangles_t = typename impl_t::triangles_t |
using | vertices_t = typename impl_t::vertices_t |
Public Member Functions | |
sphere_mesh_t (double radius=1.0, int slices=32, int segments=16, double sliceStart=0.0, double sliceSweep=gml::radians(360.0), double segmentStart=0.0, double segmentSweep=gml::radians(180.0)) | |
triangles_t | triangles () const noexcept |
vertices_t | vertices () const noexcept |
A sphere of the given radius centered around the origin. Subdivided around the z-axis in slices and along the z-axis in segments.
Definition at line 15 of file sphere_mesh.hpp.
using generator::sphere_mesh_t::triangles_t = typename impl_t::triangles_t |
Definition at line 37 of file sphere_mesh.hpp.
using generator::sphere_mesh_t::vertices_t = typename impl_t::vertices_t |
Definition at line 44 of file sphere_mesh.hpp.
sphere_mesh_t::sphere_mesh_t | ( | double | radius = 1.0, |
int | slices = 32, | ||
int | segments = 16, | ||
double | sliceStart = 0.0, | ||
double | sliceSweep = gml::radians(360.0), | ||
double | segmentStart = 0.0, | ||
double | segmentSweep = gml::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. |
Definition at line 5 of file sphere_mesh.cpp.
|
inlinenoexcept |
Definition at line 39 of file sphere_mesh.hpp.
|
inlinenoexcept |
Definition at line 46 of file sphere_mesh.hpp.