Emergency 20 Dokumentation  4.2.0
WaterjetMeshHelper.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Header guard ]
6 //[-------------------------------------------------------]
7 #pragma once
8 
9 
10 //[-------------------------------------------------------]
11 //[ Includes ]
12 //[-------------------------------------------------------]
13 #include <glm/glm.hpp>
14 
15 #include <boost/noncopyable.hpp>
16 
17 #include <vector>
18 
19 
20 //[-------------------------------------------------------]
21 //[ Forward declarations ]
22 //[-------------------------------------------------------]
23 namespace qsf
24 {
25  class Entity;
26 }
27 
28 
29 //[-------------------------------------------------------]
30 //[ Namespace ]
31 //[-------------------------------------------------------]
32 namespace em5
33 {
34 
35 
36  //[-------------------------------------------------------]
37  //[ Classes ]
38  //[-------------------------------------------------------]
43  class WaterjetMeshHelper : public boost::noncopyable
44  {
45 
46 
47  //[-------------------------------------------------------]
48  //[ Public static methods ]
49  //[-------------------------------------------------------]
50  public:
51  static std::string getMeshName(const qsf::Entity& entity);
52  static void computeSmoothNormals(const std::vector<glm::vec3>& vertices, const std::vector<uint32>& indices, std::vector<glm::vec3>& normals);
53  static void generateMesh(float startRadius, float endRadius, float endRadiusYFactor, const std::vector<float>& segments, float currentDistance, float targetDistance, qsf::Entity& entity, float alpha = 1.0f);
54 
55 
56  };
57 
58 
59 //[-------------------------------------------------------]
60 //[ Namespace ]
61 //[-------------------------------------------------------]
62 } // em5
Definition: ActionPriority.h:13
Entity class.
Definition: Entity.h:46
Definition: PickupPersonByParamedicAction.h:21
static std::string getMeshName(const qsf::Entity &entity)
Waterjet mesh helper class.
Definition: WaterjetMeshHelper.h:43
static void computeSmoothNormals(const std::vector< glm::vec3 > &vertices, const std::vector< uint32 > &indices, std::vector< glm::vec3 > &normals)
static void generateMesh(float startRadius, float endRadius, float endRadiusYFactor, const std::vector< float > &segments, float currentDistance, float targetDistance, qsf::Entity &entity, float alpha=1.0f)