Cogs.Core
ProfileGenerator.h
1#pragma once
2
3#include "Foundation/Geometry/BoundingBox.hpp"
4
5#include <vector>
6
7namespace Cogs
8{
10 namespace Geometry
11 {
15 namespace ProfileGenerator
16 {
17 void generateConnector(std::vector<float> & depths,
18 std::vector<glm::vec2> & profile,
19 const float startDepth,
20 const float endDepth,
21 const float startRadius,
22 const float outerRadius,
23 const float endRadius,
24 const float depthAnchor);
25
26 void generateCurvedProfile(std::vector<float> & depths,
27 std::vector<glm::vec2> & profile,
28 const float startDepth,
29 const float endDepth,
30 const float startRadius,
31 const float endRadius,
32 const float numSections = 6);
33
34 void insertPoints(std::vector<float> & depths,
35 std::vector<glm::vec2> & profile,
36 const float radius,
37 const float startDepth,
38 const float endDepth,
39 std::vector<float>::const_iterator it,
40 std::vector<float>::const_iterator end);
41
42 void insertPointsReverse(std::vector<float> & depths,
43 std::vector<glm::vec2> & profile,
44 const float radius,
45 const float startDepth,
46 const float endDepth,
47 std::vector<float>::const_iterator it);
48
49 void reverseProfile(std::vector<float> & depths,
50 std::vector<glm::vec2> & profile,
51 const float startDepth,
52 const float endDepth
53 );
54 }
55 }
56}
@ Geometry
Store entity vector fields (vector<vec3>, vector<vec2>, vector<int>, vector<float>).
void reverseProfile(std::vector< float > &depths, std::vector< glm::vec2 > &profile, const float startDepth, const float endDepth)
Reverses the given profile.
Contains all Cogs related functionality.
Definition: FieldSetter.h:23