Unravel Engine C++ Reference
Loading...
Searching...
No Matches
cylinder_mesh.hpp
Go to the documentation of this file.
1
#ifndef GENERATOR_CYLINDERMESH_HPP
2
#define GENERATOR_CYLINDERMESH_HPP
3
4
#include "
axis_swap_mesh.hpp
"
5
#include "
lathe_mesh.hpp
"
6
#include "
line_shape.hpp
"
7
#include "
uv_flip_mesh.hpp
"
8
9
namespace
generator
10
{
11
14
class
cylinder_mesh_t
15
{
16
private
:
17
using
impl_t
=
axis_swap_mesh_t<lathe_mesh_t<line_shape_t>
>;
18
impl_t
axis_swap_mesh_;
19
20
public
:
27
cylinder_mesh_t
(
double
radius = 1.0,
28
double
size
= 1.0,
29
int
slices = 32,
30
int
segments
= 8,
31
double
start = 0.0,
32
double
sweep = gml::radians(360.0));
33
34
using
triangles_t
=
typename
impl_t::triangles_t;
35
36
triangles_t
triangles
() const noexcept
37
{
38
return
axis_swap_mesh_.
triangles
();
39
}
40
41
using
vertices_t
=
typename
impl_t::vertices_t
;
42
43
vertices_t
vertices
() const noexcept
44
{
45
return
axis_swap_mesh_.
vertices
();
46
}
47
};
48
}
// namespace generator
49
50
#endif
axis_swap_mesh.hpp
generator::axis_swap_mesh_t< lathe_mesh_t< line_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< line_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::cylinder_mesh_t
Definition
cylinder_mesh.hpp:15
generator::cylinder_mesh_t::vertices_t
typename impl_t::vertices_t vertices_t
Definition
cylinder_mesh.hpp:41
generator::cylinder_mesh_t::vertices
vertices_t vertices() const noexcept
Definition
cylinder_mesh.hpp:43
generator::cylinder_mesh_t::triangles
triangles_t triangles() const noexcept
Definition
cylinder_mesh.hpp:36
generator::cylinder_mesh_t::triangles_t
typename impl_t::triangles_t triangles_t
Definition
cylinder_mesh.hpp:34
generator::cylinder_mesh_t::cylinder_mesh_t
cylinder_mesh_t(double radius=1.0, double size=1.0, int slices=32, int segments=8, double start=0.0, double sweep=gml::radians(360.0))
Definition
cylinder_mesh.cpp:5
lathe_mesh.hpp
line_shape.hpp
generator
Definition
any_generator.hpp:7
segments
const segment_list * segments
Definition
text_component.cpp:442
size
Definition
basetypes.hpp:43
uv_flip_mesh.hpp
UnravelEngine
UnravelEngine
engine
engine
rendering
generator
cylinder_mesh.hpp
Generated by
1.12.0