Unravel Engine C++ Reference
Loading...
Searching...
No Matches
torus_mesh.hpp
Go to the documentation of this file.
1#ifndef GENERATOR_TORUS_HPP
2#define GENERATOR_TORUS_HPP
3
4#include "axis_swap_mesh.hpp"
5#include "circle_shape.hpp"
6#include "lathe_mesh.hpp"
7#include "translate_shape.hpp"
8
9namespace generator
10{
11
15{
16private:
18 impl_t axis_swap_mesh_;
19
20public:
29 torus_mesh_t(double minor = 0.25,
30 double major = 1.0,
31 int slices = 16,
32 int segments = 32,
33 double minorStart = 0.0,
34 double minorSweep = gml::radians(360.0),
35 double majorStart = 0.0,
36 double majorSweep = gml::radians(360.0));
37
38 using triangles_t = typename impl_t::triangles_t;
39
40 triangles_t triangles() const noexcept
41 {
42 return axis_swap_mesh_.triangles();
43 }
44
46
47 vertices_t vertices() const noexcept
48 {
49 return axis_swap_mesh_.vertices();
50 }
51};
52} // namespace generator
53
54#endif
vertices_t vertices() const noexcept
triangles_t triangles() const noexcept
torus_mesh_t(double minor=0.25, double major=1.0, int slices=16, int segments=32, double minorStart=0.0, double minorSweep=gml::radians(360.0), double majorStart=0.0, double majorSweep=gml::radians(360.0))
Definition torus_mesh.cpp:5
triangles_t triangles() const noexcept
typename impl_t::vertices_t vertices_t
typename impl_t::triangles_t triangles_t
vertices_t vertices() const noexcept
const segment_list * segments