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