|
CeresEngine 0.2.0
A game development framework
|
Torus centered at origin on the xy-plane. More...
#include <CeresEngine/Mesh/Generator/TorusMesh.hpp>
Public Types | |
| using | Triangles = typename Impl::Triangles |
| using | Vertices = typename Impl::Vertices |
Public Member Functions | |
| TorusMesh (double minor=0.25, double major=1.0, int slices=16, int segments=32, double minorStart=0.0, double minorSweep=radians(360.0), double majorStart=0.0, double majorSweep=radians(360.0)) | |
| Triangles | triangles () const noexcept |
| Vertices | vertices () const noexcept |
Private Types | |
| using | Impl = AxisSwapMesh< LatheMesh< TranslateShape< CircleShape > > > |
Private Attributes | |
| Impl | mAxisSwapMesh |
Torus centered at origin on the xy-plane.
|
private |
| using CeresEngine::MeshGenerator::TorusMesh::Triangles = typename Impl::Triangles |
| CeresEngine::MeshGenerator::TorusMesh::TorusMesh | ( | double | minor = 0.25, |
| double | major = 1.0, |
||
| int | slices = 16, |
||
| int | segments = 32, |
||
| double | minorStart = 0.0, |
||
| double | minorSweep = radians(360.0), |
||
| double | majorStart = 0.0, |
||
| double | majorSweep = radians(360.0) |
||
| ) |
| minor | Radius of the minor (inner) ring |
| major | Radius of the major (outer) ring |
| slices | Subdivisions around the minor ring |
| segments | Subdivisions around the major ring |
| minorStart | Counterclockwise angle relative to the xy-plane. |
| minorSweep | Counterclockwise angle around the circle. |
| majorStart | Counterclockwise angle around the z-axis relative to the x-axis. |
| majorSweep | Counterclockwise angle around the z-axis. |
|
inlinenoexcept |
|
inlinenoexcept |
|
private |