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