|
CeresEngine 0.2.0
A game development framework
|
A spring aligned along the z-axis winding counterclockwise. More...
#include <CeresEngine/Mesh/Generator/SpringMesh.hpp>
Public Types | |
| using | Triangles = typename Impl::Triangles |
| using | Vertices = typename Impl::Vertices |
Public Member Functions | |
| SpringMesh (double minor=0.25, double major=1.0, double size=1.0, int slices=8, int segments=32, double minorStart=0.0, double minorSweep=radians(360.0), double majorStart=0.0, double majorSweep=radians(720.0)) | |
| Triangles | triangles () const noexcept |
| Vertices | vertices () const noexcept |
Private Types | |
| using | Impl = ExtrudeMesh< CircleShape, HelixPath > |
Private Attributes | |
| Impl | mExtrudeMesh |
A spring aligned along the z-axis winding counterclockwise.
| using CeresEngine::MeshGenerator::SpringMesh::Triangles = typename Impl::Triangles |
| using CeresEngine::MeshGenerator::SpringMesh::Vertices = typename Impl::Vertices |
| CeresEngine::MeshGenerator::SpringMesh::SpringMesh | ( | double | minor = 0.25, |
| double | major = 1.0, |
||
| double | size = 1.0, |
||
| int | slices = 8, |
||
| int | segments = 32, |
||
| double | minorStart = 0.0, |
||
| double | minorSweep = radians(360.0), |
||
| double | majorStart = 0.0, |
||
| double | majorSweep = radians(720.0) |
||
| ) |
| minor | Radius of the spring it self. |
| major | Radius from the z-axis |
| size | Half of the length along the z-axis. |
| slices | Subdivisions around the spring. |
| segments | Subdivisions along the path. |
| majorStart | Counterclockwise angle around the z-axis relative to the x-axis. |
| majorSweep | Counterclockwise angle arounf the z-axis. |
|
inlinenoexcept |
|
inlinenoexcept |
|
private |