Unravel Engine C++ Reference
Loading...
Searching...
No Matches
sphere_mesh.hpp
Go to the documentation of this file.
1#ifndef GENERATOR_SPHERE_HPP
2#define GENERATOR_SPHERE_HPP
3
4#include "axis_swap_mesh.hpp"
5#include "circle_shape.hpp"
6#include "lathe_mesh.hpp"
7#include "uv_flip_mesh.hpp"
8
9namespace generator
10{
11
16{
17private:
19 impl_t axis_swap_mesh_;
20
21public:
29 sphere_mesh_t(double radius = 1.0,
30 int slices = 32,
31 int segments = 16,
32 double sliceStart = 0.0,
33 double sliceSweep = gml::radians(360.0),
34 double segmentStart = 0.0,
35 double segmentSweep = gml::radians(180.0));
36
37 using triangles_t = typename impl_t::triangles_t;
38
39 triangles_t triangles() const noexcept
40 {
41 return axis_swap_mesh_.triangles();
42 }
43
45
46 vertices_t vertices() const noexcept
47 {
48 return axis_swap_mesh_.vertices();
49 }
50};
51} // namespace generator
52
53#endif
vertices_t vertices() const noexcept
triangles_t triangles() const noexcept
vertices_t vertices() const noexcept
triangles_t triangles() const noexcept
typename impl_t::vertices_t vertices_t
sphere_mesh_t(double radius=1.0, int slices=32, int segments=16, double sliceStart=0.0, double sliceSweep=gml::radians(360.0), double segmentStart=0.0, double segmentSweep=gml::radians(180.0))
typename impl_t::triangles_t triangles_t
const segment_list * segments