ESyS-Particle  4.0.1
RoughPaddedBlock3d.h
1 
2 // //
3 // Copyright (c) 2003-2011 by The University of Queensland //
4 // Earth Systems Science Computational Centre (ESSCC) //
5 // http://www.uq.edu.au/esscc //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.opensource.org/licenses/osl-3.0.php //
10 // //
12 
13 #ifndef __ROUGHPADDEDBLOCK3D_H
14 #define __ROUGHPADDEDBLOCK3D_H
15 
16 //-- project includes --
17 #include "Geometry/PaddedBlock3D.h"
18 #include "Geometry/Plane.h"
19 #include "Geometry/RectPatch.h"
20 
21 // --- STL includes ---
22 #include <vector>
23 
34 {
35  protected:
36  double m_rough_xres,m_rough_yres;
37  double m_rough_depth;
38  double m_rough_prob;
39 
40  vector<RectPatch> m_fault;
41 
42  virtual RectPatch getClosestPatch(const SimpleParticle&,double);
43  virtual Plane getClosestPlane(const SimpleParticle&);
44 
45  public:
46  CRoughPaddedBlock3D(double,double,double,double,double,double,double,double,double,double,bool circ_x=false);
47  virtual ~CRoughPaddedBlock3D(){};
48 
49  void setRoughness(int,int,double,double);
50 
51  virtual bool checkAFit(const SimpleParticle&) ;
52  virtual void generate(int,unsigned int);
53 /* virtual void tagSplit(int,int,double); */
54 };
55 
56 #endif // __ROUGHPADDEDBLOCK3D_H