Unravel Engine C++ Reference
Loading...
Searching...
No Matches
knot_path.hpp
Go to the documentation of this file.
1#ifndef GENERATOR_TORUSKNOTPATH_HPP
2#define GENERATOR_TORUSKNOTPATH_HPP
3
4#include "circle_shape.hpp"
5#include "extrude_mesh.hpp"
6#include "parametric_path.hpp"
7
8namespace generator
9{
10
14{
15private:
17 impl_t parametric_path_;
18
19public:
23 knot_path_t(int p = 2, int q = 3, int segments = 96);
24
25 using edges_t = typename impl_t::edges_t;
26
27 edges_t edges() const noexcept
28 {
29 return parametric_path_.edges();
30 }
31
33
34 vertices_t vertices() const noexcept
35 {
36 return parametric_path_.vertices();
37 }
38};
39} // namespace generator
40
41#endif
knot_path_t(int p=2, int q=3, int segments=96)
Definition knot_path.cpp:26
typename impl_t::vertices_t vertices_t
Definition knot_path.hpp:32
vertices_t vertices() const noexcept
Definition knot_path.hpp:34
typename impl_t::edges_t edges_t
Definition knot_path.hpp:25
edges_t edges() const noexcept
Definition knot_path.hpp:27
Path generated by evaluating callback functions at even intervals.
edges_t edges() const noexcept
vertices_t vertices() const noexcept
const segment_list * segments