52 vertex.position =
Vector3{vertex.position[
static_cast<int>(x)], vertex.position[
static_cast<int>(y)],
53 vertex.position[
static_cast<int>(z)]};
54 vertex.normal =
Vector3{vertex.normal[
static_cast<int>(x)], vertex.normal[
static_cast<int>(y)], vertex.normal[
static_cast<int>(z)]};
Definition AxisSwapMesh.hpp:23
const AxisSwapMesh * mMesh
Definition AxisSwapMesh.hpp:36
bool done() const noexcept
Definition AxisSwapMesh.hpp:32
void next()
Definition AxisSwapMesh.hpp:33
Triangle generate() const
Definition AxisSwapMesh.hpp:25
Triangles(const AxisSwapMesh &mesh)
Definition AxisSwapMesh.hpp:40
TriangleGeneratorType< TransformMesh< Mesh > >::Type mTriangles
Definition AxisSwapMesh.hpp:38
Swaps any number of axis in the mesh.
Definition AxisSwapMesh.hpp:17
Impl mTransformMesh
Definition AxisSwapMesh.hpp:20
bool mFlip
Definition AxisSwapMesh.hpp:76
typename Impl::Vertices Vertices
Definition AxisSwapMesh.hpp:72
AxisSwapMesh(Mesh mesh, Axis x, Axis y, Axis z)
Definition AxisSwapMesh.hpp:49
Triangles triangles() const noexcept
Definition AxisSwapMesh.hpp:70
Vertices vertices() const noexcept
Definition AxisSwapMesh.hpp:73
Definition MeshVertex.hpp:14
Will have a type named "Type" that has same type as value returned by method triangles() for type Pri...
Definition Utility.hpp:30
Definition Triangle.hpp:14
A base class for all mesh implementations.
Definition Mesh.hpp:112
Definition AnyGenerator.hpp:12
Axis
Definition Axis.hpp:12
AxisSwapMesh< Mesh > axisSwapMesh(Mesh mesh, Axis x, Axis y, Axis z)
Definition AxisSwapMesh.hpp:79
auto move(Vector3 position)
Moves a entity to the given position.
Definition Helpers.hpp:22
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25