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