#include <torus_mesh.hpp>
Torus centered at origin on the xy-plane.
Definition at line 14 of file torus_mesh.hpp.
◆ triangles_t
◆ vertices_t
◆ torus_mesh_t()
torus_mesh_t::torus_mesh_t |
( |
double | minor = 0.25, |
|
|
double | major = 1.0, |
|
|
int | slices = 16, |
|
|
int | segments = 32, |
|
|
double | minorStart = 0.0, |
|
|
double | minorSweep = gml::radians(360.0), |
|
|
double | majorStart = 0.0, |
|
|
double | majorSweep = gml::radians(360.0) ) |
- Parameters
-
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. |
Definition at line 5 of file torus_mesh.cpp.
◆ triangles()
triangles_t generator::torus_mesh_t::triangles |
( |
| ) |
const |
|
inlinenoexcept |
◆ vertices()
vertices_t generator::torus_mesh_t::vertices |
( |
| ) |
const |
|
inlinenoexcept |
The documentation for this class was generated from the following files:
- C:/Workspace/github/UnravelEngine/UnravelEngine/engine/engine/rendering/generator/torus_mesh.hpp
- C:/Workspace/github/UnravelEngine/UnravelEngine/engine/engine/rendering/generator/torus_mesh.cpp