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
11namespace generator
12{
13
17{
18private:
20 impl_t merge_mesh_;
21
22public:
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
typename impl_t::triangles_t triangles_t
triangles_t triangles() const noexcept
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))
vertices_t vertices() const noexcept
typename impl_t::vertices_t vertices_t
const segment_list * segments