|
CeresEngine 0.2.0
A game development framework
|
Spins a shape around an axis to create a mesh. More...
#include <CeresEngine/Mesh/Generator/LatheMesh.hpp>
Classes | |
| class | Triangles |
| class | Vertices |
Public Member Functions | |
| LatheMesh (Shape shape, const Vector2 &axis, const int slices=32, const double start=0.0, const double sweep=radians(360.0)) | |
| Triangles | triangles () const noexcept |
| Vertices | vertices () const noexcept |
Private Attributes | |
| Vector3 | axis_ |
| Shape | mShape |
| int | mSlices |
| double | start_ |
| double | sweep_ |
Spins a shape around an axis to create a mesh.
u-texture coordinate is taken from the shape and v runs from 0 to 1 around the axis counterclockwise.
|
inline |
| shape | The shape to spin. |
| axis | Unit length axis to spin around. |
| slices | Number of subdivisions around the axis. |
| start | Counterclockwise angle around the given axis relative to the xy-plane. relative to the xy-plane. |
| sweep | Counterclockwise angle around the given axis. |
|
inlinenoexcept |
|
inlinenoexcept |
|
private |
|
private |
|
private |
|
private |
|
private |