Unravel Engine C++ Reference
Loading...
Searching...
No Matches
tube_mesh.hpp
Go to the documentation of this file.
1#ifndef GENERATOR_TUBEMESH_HPP
2#define GENERATOR_TUBEMESH_HPP
3
4#include "cylinder_mesh.hpp"
5#include "flip_mesh.hpp"
6#include "merge_mesh.hpp"
7#include "uv_flip_mesh.hpp"
8
9namespace generator
10{
11
15{
16private:
18 impl_t merge_mesh_;
19
20public:
28 tube_mesh_t(double radius = 1.0,
29 double innerRadius = 0.75,
30 double size = 1.0,
31 int slices = 32,
32 int segments = 8,
33 double start = 0.0,
34 double sweep = gml::radians(360.0));
35
36 using triangles_t = typename impl_t::triangles_t;
37
38 triangles_t triangles() const noexcept
39 {
40 return merge_mesh_.triangles();
41 }
42
43 using vertices_t = typename impl_t::vertices_t;
44
45 vertices_t vertices() const noexcept
46 {
47 return merge_mesh_.vertices();
48 }
49};
50} // namespace generator
51
52#endif
vertices_t vertices() const noexcept
Definition tube_mesh.hpp:45
typename impl_t::triangles_t triangles_t
Definition tube_mesh.hpp:36
typename impl_t::vertices_t vertices_t
Definition tube_mesh.hpp:43
triangles_t triangles() const noexcept
Definition tube_mesh.hpp:38
tube_mesh_t(double radius=1.0, double innerRadius=0.75, double size=1.0, int slices=32, int segments=8, double start=0.0, double sweep=gml::radians(360.0))
Definition tube_mesh.cpp:5
const segment_list * segments