1#ifndef GENERATOR_AXISFLIPMESH_HPP
2#define GENERATOR_AXISFLIPMESH_HPP
13template<
typename mesh_t>
34 return triangles_.done();
59 : transform_mesh_{
std::move(mesh),
64 vertex.position[0] *= -1.0;
65 vertex.normal[0] *= -1.0;
70 vertex.position[1] *= -1.0;
71 vertex.normal[1] *= -1.0;
76 vertex.position[2] *= -1.0;
77 vertex.normal[2] *= -1.0;
99 return transform_mesh_.vertices();
106template<
typename mesh_t>
bool done() const noexcept
triangle_t generate() const
axis_flip_mesh_t(mesh_t mesh, bool x, bool y, bool z)
triangles_t triangles() const noexcept
vertices_t vertices() const noexcept
typename impl_t::vertices_t vertices_t
gml::ivec3 vertices
Zero based indices of the triangle vertices in counterclockwise order.
axis_flip_mesh_t< mesh_t > axis_flip_mesh(mesh_t mesh, bool x, bool y, bool z)