|
Unravel Engine C++ Reference
|
#include <lathe_mesh.hpp>
Classes | |
| class | triangles_t |
| class | vertices_t |
Public Member Functions | |
| lathe_mesh_t (shape_t shape, const gml::dvec2 &axis, int slices=32, double start=0.0, double sweep=gml::radians(360.0)) | |
| triangles_t | triangles () const noexcept |
| vertices_t | vertices () const noexcept |
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.
Definition at line 19 of file lathe_mesh.hpp.
|
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. |
Definition at line 141 of file lathe_mesh.hpp.
|
inlinenoexcept |
Definition at line 154 of file lathe_mesh.hpp.
|
inlinenoexcept |
Definition at line 159 of file lathe_mesh.hpp.