ESyS-Particle  4.0.1
ETriangleInteraction.h
00001 
00002 //                                                         //
00003 // Copyright (c) 2003-2011 by The University of Queensland //
00004 // Earth Systems Science Computational Centre (ESSCC)      //
00005 // http://www.uq.edu.au/esscc                              //
00006 //                                                         //
00007 // Primary Business: Brisbane, Queensland, Australia       //
00008 // Licensed under the Open Software License version 3.0    //
00009 // http://www.opensource.org/licenses/osl-3.0.php          //
00010 //                                                         //
00012 
00013 #ifndef __ETRIANGLEINTERACTION_H
00014 #define __ETRIANGLEINTERACTION_H
00015 
00016 // -- Project includes --
00017 #include "Foundation/vec3.h"
00018 #include "Geometry/Triangle.h"
00019 #include "Model/Particle.h"
00020 #include "Model/ETriMeshIP.h"
00021 
00030 class ETriangleInteraction
00031 {
00032  private:
00033   CParticle *m_p;
00034   Triangle *m_t;
00035   double m_k;
00040   bool m_inner_flag; 
00041 
00042  public:
00043   typedef ETriMeshIP ParameterType;
00044 
00045   ETriangleInteraction();
00046   ETriangleInteraction(CParticle*,Triangle*,ETriMeshIP,bool iflag=true);
00047   virtual ~ETriangleInteraction();
00048 
00049   bool isInner(){return m_inner_flag;};
00050   virtual void calcForces();
00051 };
00052 #endif //__ETRIANGLEINTERACTION_H