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