Unravel Engine C++ Reference
Loading...
Searching...
No Matches
torus_knot_mesh.hpp
Go to the documentation of this file.
1#ifndef GENERATOR_TORUSKNOTMESH_HPP
2#define GENERATOR_TORUSKNOTMESH_HPP
3
4#include "circle_shape.hpp"
5#include "extrude_mesh.hpp"
6#include "knot_path.hpp"
7
8namespace generator
9{
10
14{
15private:
17 impl_t extrude_mesh_;
18
19public:
22 torus_knot_mesh_t(int p = 2, int q = 3, int slices = 8, int segments = 96);
23
24 using triangles_t = typename impl_t::triangles_t;
25
26 triangles_t triangles() const noexcept
27 {
28 return extrude_mesh_.triangles();
29 }
30
31 using vertices_t = typename impl_t::vertices_t;
32
33 vertices_t vertices() const noexcept
34 {
35 return extrude_mesh_.vertices();
36 }
37};
38} // namespace generator
39
40#endif
vertices_t vertices() const noexcept
triangles_t triangles() const noexcept
typename impl_t::vertices_t vertices_t
vertices_t vertices() const noexcept
typename impl_t::triangles_t triangles_t
triangles_t triangles() const noexcept
torus_knot_mesh_t(int p=2, int q=3, int slices=8, int segments=96)
const segment_list * segments