Vis 2
Kinetic Visualization for 3D shape and structure
 All Classes Namespaces Functions Pages
SurfaceAlignedParticle.h
1 #pragma once
2 #include "IParticle.h"
3 #include "HalfedgeMesh.h"
4 #include "InputHandler.h"
5 #include "SurfaceAlignedParticleGroupProperties.h"
6 #include "Texture.h"
7 #include <map>
8 
9 using std::map;
13 class SurfaceAlignedParticle : public virtual IParticle
14 {
15 public:
18 
19  //IParticle
20  void update();
21  void spawn();
22  float SurfaceAlignedParticle::calculateInfluence(SurfaceAlignedParticle*);
23  float _barycentricAlpha, _barycentricBeta, _barycentricGamma;
24  glm::vec2 _size;
25  glm::vec3 _color;
26  unsigned int _faceNumber;
27 
28  glm::vec3 * _faceNormal;
29 
30  static SurfaceAlignedParticleGroupProperties * RenderProperties;
31  static HalfedgeMesh * MeshRef;
32  static Texture * TextureRef;
33  HE_Face * _currentFace;
34 private:
35 
36  map<unsigned, HE_Face*> _surroundingfaces;
37 };
Definition: SurfaceAlignedParticleGroupProperties.h:20
Definition: HalfedgeMesh.h:54
Definition: Texture.h:12
Definition: HalfedgeMesh.h:29
Definition: IParticle.h:9
Definition: SurfaceAlignedParticle.h:13