ESyS-Particle  2.3.2
FaultedBlock2d.h
Go to the documentation of this file.
1 
2 // //
3 // Copyright (c) 2003-2014 by The University of Queensland //
4 // Centre for Geoscience Computing //
5 // http://earth.uq.edu.au/centre-geoscience-computing //
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 __FAULTEDBLOCK2D_H
14 #define __FAULTEDBLOCK2D_H
15 
16 //--- STL includes ---
17 #include <vector>
18 #include <utility>
19 
20 using std::vector;
21 using std::pair;
22 
23 //-- project includes --
24 #include "Geometry/RandomBlock.h"
25 #include "Geometry/LineSegment.h"
26 
36 {
37  protected:
38  vector<pair<double,LineSegment> > m_fault;
39  vector<LineSegment> m_f2;
40  virtual Line *getClosestPlane(const SimpleParticle&);
41  double m_pad_size;
42 
43  virtual Vec3 getAPoint();
44 
45  public:
46  FaultedBlock2D(double,double,double,double,double,double,double,bool circ_x=false);
47  virtual ~FaultedBlock2D();
48 
49  void addSegment(const Vec3&,const Vec3&,double);
50  virtual bool checkAFit(const SimpleParticle&) ;
51  virtual void generate(int,unsigned int);
52  virtual void tagSplit(int,int,double);
53 };
54 
55 #endif // __FAULTEDBLOCK2D_H