Unravel Engine C++ Reference
Loading...
Searching...
No Matches
generator::sphere_mesh_t Class 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
 

Detailed Description

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.

Member Typedef Documentation

◆ triangles_t

using generator::sphere_mesh_t::triangles_t = typename impl_t::triangles_t

Definition at line 37 of file sphere_mesh.hpp.

◆ vertices_t

Definition at line 44 of file sphere_mesh.hpp.

Constructor & Destructor Documentation

◆ sphere_mesh_t()

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) )
Parameters
radiusThe radius of the sphere
slicesSubdivisions around the z-azis (longitudes).
segmentsSubdivisions along the z-azis (latitudes).
sliceStartCounterclockwise angle around the z-axis relative to x-axis.
sliceSweepCounterclockwise angle.
segmentStartCounterclockwise angle relative to the z-axis.
segmentSweepCounterclockwise angle.

Definition at line 5 of file sphere_mesh.cpp.

Member Function Documentation

◆ triangles()

triangles_t generator::sphere_mesh_t::triangles ( ) const
inlinenoexcept

Definition at line 39 of file sphere_mesh.hpp.

◆ vertices()

vertices_t generator::sphere_mesh_t::vertices ( ) const
inlinenoexcept

Definition at line 46 of file sphere_mesh.hpp.


The documentation for this class was generated from the following files: