1#ifndef GENERATOR_SCALEPATH_HPP
2#define GENERATOR_SCALEPATH_HPP
10template<
typename path_t>
21 : transform_path_{
std::move(path),
24 value.position *=
scale;
25 value.tangent = gml::normalize(
scale * value.tangent);
26 value.normal = gml::normalize(
scale * value.normal);
35 return transform_path_.edges();
42 return transform_path_.vertices();
46template<
typename path_t>
Scales a path. Keeps tangents and normals unit length.
typename impl_t::edges_t edges_t
vertices_t vertices() const noexcept
typename impl_t::vertices_t vertices_t
scale_path_t(path_t path, const gml::dvec3 &scale)
edges_t edges() const noexcept
scale_path_t< path_t > scale_path(path_t path, const gml::dvec3 &scale)