Unravel Engine C++ Reference
Loading...
Searching...
No Matches
spring_mesh.hpp
Go to the documentation of this file.
1#ifndef GENERATOR_SPRINGMESH_HPP
2#define GENERATOR_SPRINGMESH_HPP
3
4#include "circle_shape.hpp"
5#include "extrude_mesh.hpp"
6#include "helix_path.hpp"
7
8namespace generator
9{
10
14{
15private:
17 impl_t extrude_mesh_;
18
19public:
27 spring_mesh_t(double minor = 0.25,
28 double major = 1.0,
29 double size = 1.0,
30 int slices = 8,
31 int segments = 32,
32 double minorStart = 0.0,
33 double minorSweep = gml::radians(360.0),
34 double majorStart = 0.0,
35 double majorSweep = gml::radians(720.0));
36
37 using triangles_t = typename impl_t::triangles_t;
38
39 triangles_t triangles() const noexcept
40 {
41 return extrude_mesh_.triangles();
42 }
43
44 using vertices_t = typename impl_t::vertices_t;
45
46 vertices_t vertices() const noexcept
47 {
48 return extrude_mesh_.vertices();
49 }
50};
51} // namespace generator
52
53#endif
vertices_t vertices() const noexcept
triangles_t triangles() const noexcept
typename impl_t::vertices_t vertices_t
spring_mesh_t(double minor=0.25, double major=1.0, double size=1.0, int slices=8, int segments=32, double minorStart=0.0, double minorSweep=gml::radians(360.0), double majorStart=0.0, double majorSweep=gml::radians(720.0))
typename impl_t::triangles_t triangles_t
vertices_t vertices() const noexcept
triangles_t triangles() const noexcept
const segment_list * segments