ESyS-Particle
4.0.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
Geometry
FaultedBlock2d.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 __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
35
class
FaultedBlock2D
:
public
CRandomBlock2D
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
Generated on Wed Jun 6 2012 00:04:50 for ESyS-Particle by
1.8.1