Unravel Engine C++ Reference
Loading...
Searching...
No Matches
torus_mesh.hpp
Go to the documentation of this file.
1
#ifndef GENERATOR_TORUS_HPP
2
#define GENERATOR_TORUS_HPP
3
4
#include "
axis_swap_mesh.hpp
"
5
#include "
circle_shape.hpp
"
6
#include "
lathe_mesh.hpp
"
7
#include "
translate_shape.hpp
"
8
9
namespace
generator
10
{
11
14
class
torus_mesh_t
15
{
16
private
:
17
using
impl_t
=
axis_swap_mesh_t<lathe_mesh_t<translate_shape_t<circle_shape_t>
>>;
18
impl_t
axis_swap_mesh_;
19
20
public
:
29
torus_mesh_t
(
double
minor = 0.25,
30
double
major = 1.0,
31
int
slices = 16,
32
int
segments
= 32,
33
double
minorStart = 0.0,
34
double
minorSweep = gml::radians(360.0),
35
double
majorStart = 0.0,
36
double
majorSweep = gml::radians(360.0));
37
38
using
triangles_t
=
typename
impl_t::triangles_t;
39
40
triangles_t
triangles
() const noexcept
41
{
42
return
axis_swap_mesh_.
triangles
();
43
}
44
45
using
vertices_t
=
typename
impl_t::vertices_t
;
46
47
vertices_t
vertices
() const noexcept
48
{
49
return
axis_swap_mesh_.
vertices
();
50
}
51
};
52
}
// namespace generator
53
54
#endif
axis_swap_mesh.hpp
circle_shape.hpp
generator::axis_swap_mesh_t< lathe_mesh_t< translate_shape_t< circle_shape_t > > >
generator::axis_swap_mesh_t::vertices
vertices_t vertices() const noexcept
Definition
axis_swap_mesh.hpp:85
generator::axis_swap_mesh_t< lathe_mesh_t< translate_shape_t< circle_shape_t > > >::vertices_t
typename impl_t::vertices_t vertices_t
Definition
axis_swap_mesh.hpp:83
generator::axis_swap_mesh_t::triangles
triangles_t triangles() const noexcept
Definition
axis_swap_mesh.hpp:78
generator::torus_mesh_t
Definition
torus_mesh.hpp:15
generator::torus_mesh_t::torus_mesh_t
torus_mesh_t(double minor=0.25, double major=1.0, int slices=16, int segments=32, double minorStart=0.0, double minorSweep=gml::radians(360.0), double majorStart=0.0, double majorSweep=gml::radians(360.0))
Definition
torus_mesh.cpp:5
generator::torus_mesh_t::triangles
triangles_t triangles() const noexcept
Definition
torus_mesh.hpp:40
generator::torus_mesh_t::vertices_t
typename impl_t::vertices_t vertices_t
Definition
torus_mesh.hpp:45
generator::torus_mesh_t::triangles_t
typename impl_t::triangles_t triangles_t
Definition
torus_mesh.hpp:38
generator::torus_mesh_t::vertices
vertices_t vertices() const noexcept
Definition
torus_mesh.hpp:47
lathe_mesh.hpp
generator
Definition
any_generator.hpp:7
segments
const segment_list * segments
Definition
text_component.cpp:442
translate_shape.hpp
UnravelEngine
UnravelEngine
engine
engine
rendering
generator
torus_mesh.hpp
Generated by
1.12.0