Unravel Engine C++ Reference
Loading...
Searching...
No Matches
spherical_cone_mesh.hpp
Go to the documentation of this file.
1
#ifndef GENERATOR_SPHERICALCONEMESH_HPP
2
#define GENERATOR_SPHERICALCONEMESH_HPP
3
4
#include "
axis_flip_mesh.hpp
"
5
#include "
cone_mesh.hpp
"
6
#include "
merge_mesh.hpp
"
7
#include "
sphere_mesh.hpp
"
8
#include "
translate_mesh.hpp
"
9
10
namespace
generator
11
{
12
16
class
spherical_cone_mesh_t
17
{
18
private
:
19
using
impl_t
=
translate_mesh_t<merge_mesh_t<cone_mesh_t, axis_flip_mesh_t<translate_mesh_t<sphere_mesh_t>
>>>;
20
impl_t
translate_mesh_;
21
22
public
:
30
spherical_cone_mesh_t
(
double
radius = 1.0,
31
double
size
= 1.0,
32
int
slices = 32,
33
int
segments
= 8,
34
int
rings = 4,
35
double
start = 0.0,
36
double
sweep = gml::radians(360.0));
37
38
using
triangles_t
=
typename
impl_t::triangles_t
;
39
40
triangles_t
triangles
() const noexcept
41
{
42
return
translate_mesh_.
triangles
();
43
}
44
45
using
vertices_t
=
typename
impl_t::vertices_t
;
46
47
vertices_t
vertices
() const noexcept
48
{
49
return
translate_mesh_.
vertices
();
50
}
51
};
52
}
// namespace generator
53
54
#endif
axis_flip_mesh.hpp
generator::spherical_cone_mesh_t
Definition
spherical_cone_mesh.hpp:17
generator::spherical_cone_mesh_t::triangles_t
typename impl_t::triangles_t triangles_t
Definition
spherical_cone_mesh.hpp:38
generator::spherical_cone_mesh_t::vertices_t
typename impl_t::vertices_t vertices_t
Definition
spherical_cone_mesh.hpp:45
generator::spherical_cone_mesh_t::vertices
vertices_t vertices() const noexcept
Definition
spherical_cone_mesh.hpp:47
generator::spherical_cone_mesh_t::triangles
triangles_t triangles() const noexcept
Definition
spherical_cone_mesh.hpp:40
generator::spherical_cone_mesh_t::spherical_cone_mesh_t
spherical_cone_mesh_t(double radius=1.0, double size=1.0, int slices=32, int segments=8, int rings=4, double start=0.0, double sweep=gml::radians(360.0))
Definition
spherical_cone_mesh.cpp:14
generator::translate_mesh_t< merge_mesh_t< cone_mesh_t, axis_flip_mesh_t< translate_mesh_t< sphere_mesh_t > > > >
generator::translate_mesh_t::vertices
vertices_t vertices() const noexcept
Definition
translate_mesh.hpp:38
generator::translate_mesh_t< merge_mesh_t< cone_mesh_t, axis_flip_mesh_t< translate_mesh_t< sphere_mesh_t > > > >::triangles_t
typename impl_t::triangles_t triangles_t
Definition
translate_mesh.hpp:29
generator::translate_mesh_t< merge_mesh_t< cone_mesh_t, axis_flip_mesh_t< translate_mesh_t< sphere_mesh_t > > > >::vertices_t
typename impl_t::vertices_t vertices_t
Definition
translate_mesh.hpp:36
generator::translate_mesh_t::triangles
triangles_t triangles() const noexcept
Definition
translate_mesh.hpp:31
cone_mesh.hpp
merge_mesh.hpp
generator
Definition
any_generator.hpp:7
segments
const segment_list * segments
Definition
text_component.cpp:442
sphere_mesh.hpp
size
Definition
basetypes.hpp:43
translate_mesh.hpp
UnravelEngine
UnravelEngine
engine
engine
rendering
generator
spherical_cone_mesh.hpp
Generated by
1.12.0