1#ifndef GENERATOR_AXISSWAPPATH_HPP
2#define GENERATOR_AXISSWAPPATH_HPP
11template<
typename path_t>
24 : transform_path_{
std::move(path),
27 vertex.position = gml::dvec3{vertex.position[
static_cast<int>(
x)],
28 vertex.position[
static_cast<int>(
y)],
29 vertex.position[
static_cast<int>(
z)]};
30 vertex.tangent = gml::dvec3{vertex.tangent[
static_cast<int>(
x)],
31 vertex.tangent[
static_cast<int>(
y)],
32 vertex.tangent[
static_cast<int>(
z)]};
33 vertex.normal = gml::dvec3{vertex.normal[
static_cast<int>(
x)],
34 vertex.normal[
static_cast<int>(
y)],
35 vertex.normal[
static_cast<int>(
z)]};
44 return transform_path_.edges();
51 return transform_path_.vertices();
55template<
typename path_t>
edges_t edges() const noexcept
axis_swap_path_t(path_t path, axis_t x, axis_t y, axis_t z)
typename impl_t::vertices_t vertices_t
vertices_t vertices() const noexcept
typename impl_t::edges_t edges_t
axis_swap_path_t< path_t > axis_swap_path(path_t path, axis_t x, axis_t y, axis_t z)