Definition ExtrudeMesh.hpp:24
Triangles(const ExtrudeMesh &mesh)
Definition ExtrudeMesh.hpp:66
bool done() const noexcept
Definition ExtrudeMesh.hpp:45
const ExtrudeMesh * mMesh
Definition ExtrudeMesh.hpp:60
bool odd_
Definition ExtrudeMesh.hpp:64
decltype(mMesh->mPath.edges()) mPathEdges
Definition ExtrudeMesh.hpp:63
decltype(mMesh->mShape.edges()) mShapeEdges
Definition ExtrudeMesh.hpp:62
void next()
Definition ExtrudeMesh.hpp:47
Triangle generate() const
Definition ExtrudeMesh.hpp:26
Definition ExtrudeMesh.hpp:71
MeshVertex generate() const
Definition ExtrudeMesh.hpp:73
const ExtrudeMesh * mMesh
Definition ExtrudeMesh.hpp:102
decltype(mMesh->mPath.vertices()) mPathVertices
Definition ExtrudeMesh.hpp:104
Vertices(const ExtrudeMesh &mesh)
Definition ExtrudeMesh.hpp:106
bool done() const noexcept
Definition ExtrudeMesh.hpp:91
decltype(mMesh->mShape.vertices()) mShapeVertices
Definition ExtrudeMesh.hpp:103
void next()
Definition ExtrudeMesh.hpp:93
Extrude a shape along a path.
Definition ExtrudeMesh.hpp:22
ExtrudeMesh(Shape shape, Path path)
Definition ExtrudeMesh.hpp:116
Path mPath
Definition ExtrudeMesh.hpp:120
int mShapeVertexCount
Definition ExtrudeMesh.hpp:121
Shape mShape
Definition ExtrudeMesh.hpp:119
Vertices vertices() const noexcept
Definition ExtrudeMesh.hpp:112
Triangles triangles() const noexcept
Definition ExtrudeMesh.hpp:111
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
Vector3i vertices
Zero based indices of the triangle vertices in counterclockwise order.
Definition Triangle.hpp:17
A type that describes a conjunction of shapes that can be filled and stroked.
Definition Shape.hpp:198
Definition AnyGenerator.hpp:12
ExtrudeMesh< Shape, Path > extrudeMesh(Shape shape, Path path)
Definition ExtrudeMesh.hpp:124
auto move(Vector3 position)
Moves a entity to the given position.
Definition Helpers.hpp:22
constexpr CountAlgorithmFunctor count
Returns the number of elements matching an element.
Definition Count.hpp:82
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25