Flow123d
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
flow123d
src
mesh
ngh
include
tetrahedron.h
Go to the documentation of this file.
1
#ifndef tetrahedronH
2
#define tetrahedronH
3
4
#include "
point.h
"
5
#include "
triangle.h
"
6
7
class
TTetrahedron
{
8
private
:
9
static
int
numberInstance
;
10
int
id
;
11
12
TPoint
X1
;
13
TPoint
X2
;
14
TPoint
X3
;
15
TPoint
X4
;
16
17
TTriangle
T1
;
18
TTriangle
T2
;
19
TTriangle
T3
;
20
TTriangle
T4
;
21
22
TAbscissa
*
A1
;
23
TAbscissa
*
A2
;
24
TAbscissa
*
A3
;
25
TAbscissa
*
A4
;
26
TAbscissa
*
A5
;
27
TAbscissa
*
A6
;
28
29
double
volume
;
30
31
int
generateId
();
32
void
ComputeVolume
();
33
34
public
:
35
TTetrahedron
();
36
TTetrahedron
(
const
TPoint
&,
const
TPoint
&,
const
TPoint
&,
const
TPoint
&);
37
~TTetrahedron
();
38
39
const
TTriangle
&
GetTriangle
(
int
)
const
;
40
const
TAbscissa
&
GetAbscissa
(
int
)
const
;
41
const
TPoint
&
GetPoint
(
int
)
const
;
42
43
double
GetMin
(
int
)
const
;
44
double
GetMax
(
int
)
const
;
45
46
double
GetVolume
();
47
48
void
SetPoints
(
const
TPoint
& P1,
const
TPoint
& P2,
const
TPoint
& P3,
const
TPoint
& P4);
49
bool
IsInner
(
const
TPoint
&)
const
;
50
51
static
int
getNumInstances
() {
52
return
TTetrahedron::numberInstance
;
53
}
54
};
55
#endif
Generated on Thu May 29 2014 23:14:49 for Flow123d by
1.8.4