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
8
namespace
generator
9
{
10
13
class
torus_knot_mesh_t
14
{
15
private
:
16
using
impl_t
=
extrude_mesh_t<circle_shape_t, knot_path_t>
;
17
impl_t
extrude_mesh_;
18
19
public
:
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
circle_shape.hpp
generator::extrude_mesh_t< circle_shape_t, knot_path_t >
generator::extrude_mesh_t::vertices
vertices_t vertices() const noexcept
Definition
extrude_mesh.hpp:147
generator::extrude_mesh_t::triangles
triangles_t triangles() const noexcept
Definition
extrude_mesh.hpp:142
generator::torus_knot_mesh_t
Definition
torus_knot_mesh.hpp:14
generator::torus_knot_mesh_t::vertices_t
typename impl_t::vertices_t vertices_t
Definition
torus_knot_mesh.hpp:31
generator::torus_knot_mesh_t::vertices
vertices_t vertices() const noexcept
Definition
torus_knot_mesh.hpp:33
generator::torus_knot_mesh_t::triangles_t
typename impl_t::triangles_t triangles_t
Definition
torus_knot_mesh.hpp:24
generator::torus_knot_mesh_t::triangles
triangles_t triangles() const noexcept
Definition
torus_knot_mesh.hpp:26
generator::torus_knot_mesh_t::torus_knot_mesh_t
torus_knot_mesh_t(int p=2, int q=3, int slices=8, int segments=96)
Definition
torus_knot_mesh.cpp:5
extrude_mesh.hpp
knot_path.hpp
generator
Definition
any_generator.hpp:7
segments
const segment_list * segments
Definition
text_component.cpp:442
UnravelEngine
UnravelEngine
engine
engine
rendering
generator
torus_knot_mesh.hpp
Generated by
1.12.0