Definition LatheMesh.hpp:25
Triangle generate() const
Definition LatheMesh.hpp:27
decltype(mMesh->mShape.edges()) mShapeEdges
Definition LatheMesh.hpp:62
bool done() const noexcept
Definition LatheMesh.hpp:49
const LatheMesh * mMesh
Definition LatheMesh.hpp:60
void next()
Definition LatheMesh.hpp:51
Triangles(const LatheMesh &mesh)
Definition LatheMesh.hpp:66
int i_
Definition LatheMesh.hpp:64
Definition LatheMesh.hpp:71
int i_
Definition LatheMesh.hpp:110
void next()
Definition LatheMesh.hpp:96
decltype(mMesh->mShape.vertices()) mShapeVertices
Definition LatheMesh.hpp:108
MeshVertex generate() const
Definition LatheMesh.hpp:73
Vertices(const LatheMesh &mesh)
Definition LatheMesh.hpp:112
const LatheMesh * mMesh
Definition LatheMesh.hpp:106
bool done() const noexcept
Definition LatheMesh.hpp:94
Spins a shape around an axis to create a mesh.
Definition LatheMesh.hpp:23
double start_
Definition LatheMesh.hpp:133
Vector3 axis_
Definition LatheMesh.hpp:130
Triangles triangles() const noexcept
Definition LatheMesh.hpp:126
int mSlices
Definition LatheMesh.hpp:132
double sweep_
Definition LatheMesh.hpp:134
LatheMesh(Shape shape, const Vector2 &axis, const int slices=32, const double start=0.0, const double sweep=radians(360.0))
Definition LatheMesh.hpp:123
Vertices vertices() const noexcept
Definition LatheMesh.hpp:127
Shape mShape
Definition LatheMesh.hpp:131
Definition MeshVertex.hpp:14
Vector3 normal
Unit vector perpendicular to the surface.
Definition MeshVertex.hpp:19
Vector2 texCoord
UV texture coordinates.
Definition MeshVertex.hpp:22
Vector3 position
Definition MeshVertex.hpp:16
Definition Triangle.hpp:14
A type that describes a conjunction of shapes that can be filled and stroked.
Definition Shape.hpp:198
Definition AnyGenerator.hpp:12
Axis
Definition Axis.hpp:12
LatheMesh< Shape > lathe(Shape shape, Axis axis=Axis::X, int slices=32, double start=0.0, double sweep=radians(360.0))
Definition LatheMesh.hpp:137
auto move(Vector3 position)
Moves a entity to the given position.
Definition Helpers.hpp:22
Axis axis(const StringView &str) noexcept
Returns the Axis constant that is represented by str.
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25
TVector3< T > transform(const TQuaternion< T > &q, const TVector3< T > &v)
Definition Math.hpp:694