Unravel Engine C++ Reference
Loading...
Searching...
No Matches
spherical_cone_mesh.hpp
Go to the documentation of this file.
1#ifndef GENERATOR_SPHERICALCONEMESH_HPP
2#define GENERATOR_SPHERICALCONEMESH_HPP
3
4#include "axis_flip_mesh.hpp"
5#include "cone_mesh.hpp"
6#include "merge_mesh.hpp"
7#include "sphere_mesh.hpp"
8#include "translate_mesh.hpp"
9
10namespace generator
11{
12
17{
18private:
20 impl_t translate_mesh_;
21
22public:
30 spherical_cone_mesh_t(double radius = 1.0,
31 double size = 1.0,
32 int slices = 32,
33 int segments = 8,
34 int rings = 4,
35 double start = 0.0,
36 double sweep = gml::radians(360.0));
37
39
40 triangles_t triangles() const noexcept
41 {
42 return translate_mesh_.triangles();
43 }
44
46
47 vertices_t vertices() const noexcept
48 {
49 return translate_mesh_.vertices();
50 }
51};
52} // namespace generator
53
54#endif
typename impl_t::triangles_t triangles_t
typename impl_t::vertices_t vertices_t
vertices_t vertices() const noexcept
triangles_t triangles() const noexcept
spherical_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
triangles_t triangles() const noexcept
const segment_list * segments