Unravel Engine C++ Reference
Loading...
Searching...
No Matches
capped_tube_mesh.hpp
Go to the documentation of this file.
1#ifndef GENERATOR_CAPPEDTUBEMESH_HPP
2#define GENERATOR_CAPPEDTUBEMESH_HPP
3
4#include "disk_mesh.hpp"
5#include "flip_mesh.hpp"
6#include "merge_mesh.hpp"
7#include "translate_mesh.hpp"
8#include "tube_mesh.hpp"
9
10namespace generator
11{
12
13namespace detail
14{
15
17{
18private:
20 impl_t translate_mesh_;
21
22public:
23 tube_cap_t(double radius, double innerRadius, double distance, int slices, int rings, double start, double sweep);
24
26
27 triangles_t triangles() const noexcept
28 {
29 return translate_mesh_.triangles();
30 }
31
33
34 vertices_t vertices() const noexcept
35 {
36 return translate_mesh_.vertices();
37 }
38};
39} // namespace detail
40
44{
45private:
47 impl_t merge_mesh_;
48
49public:
58 capped_tube_mesh_t(double radius = 1.0,
59 double innerRadius = 0.75,
60 double size = 1.0,
61 int slices = 32,
62 int segments = 8,
63 int rings = 1,
64 double start = 0.0,
65 double sweep = gml::radians(360.0));
66
67 using triangles_t = typename impl_t::triangles_t;
68
69 triangles_t triangles() const noexcept
70 {
71 return merge_mesh_.triangles();
72 }
73
74 using vertices_t = typename impl_t::vertices_t;
75
76 vertices_t vertices() const noexcept
77 {
78 return merge_mesh_.vertices();
79 }
80};
81} // namespace generator
82
83#endif
vertices_t vertices() const noexcept
typename impl_t::triangles_t triangles_t
triangles_t triangles() const noexcept
capped_tube_mesh_t(double radius=1.0, double innerRadius=0.75, double size=1.0, int slices=32, int segments=8, int rings=1, double start=0.0, double sweep=gml::radians(360.0))
typename impl_t::vertices_t vertices_t
triangles_t triangles() const noexcept
typename impl_t::vertices_t vertices_t
vertices_t vertices() const noexcept
typename impl_t::triangles_t triangles_t
tube_cap_t(double radius, double innerRadius, double distance, int slices, int rings, double start, double sweep)
vertices_t vertices() const noexcept
typename impl_t::triangles_t triangles_t
triangles_t triangles() const noexcept
const segment_list * segments
float distance