Flow123d
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
flow123d
src
mesh
ngh
include
triangle.h
Go to the documentation of this file.
1
#ifndef triangleH
2
#define triangleH
3
4
#include "
point.h
"
5
#include "
plain.h
"
6
#include "
abscissa.h
"
7
#include "
mesh/bounding_box.hh
"
8
#include "
mesh/elements.h
"
9
10
class
TTriangle
{
11
private
:
12
static
int
numberInstance
;
13
int
id
;
14
15
TPoint
X1
;
16
TPoint
X2
;
17
TPoint
X3
;
18
19
TAbscissa
*
A1
;
20
TAbscissa
*
A2
;
21
TAbscissa
*
A3
;
22
23
TPlain
*
pl
;
24
25
BoundingBox
boundingBox
;
26
27
double
area
;
28
29
int
generateId
();
30
31
void
ComputeArea
();
32
33
public
:
34
TTriangle
();
35
TTriangle
(
const
TTriangle
&);
36
TTriangle
(
const
TPoint
&,
const
TPoint
&,
const
TPoint
&);
37
TTriangle
(
const
Element
&);
38
void
update
();
39
40
~TTriangle
();
41
42
TTriangle
&
operator =
(
const
TTriangle
&t);
43
44
const
TPlain
&
GetPlain
()
const
;
45
const
TAbscissa
&
GetAbscissa
(
int
)
const
;
46
const
TPoint
&
GetPoint
(
int
)
const
;
47
48
void
SetPoints
(
const
TPoint
&,
const
TPoint
&,
const
TPoint
&);
49
50
double
GetMin
(
int
)
const
;
51
double
GetMax
(
int
)
const
;
52
53
double
GetArea
();
54
BoundingBox
&
get_bounding_box
();
55
56
bool
IsInner
(
const
TPoint
&)
const
;
57
58
static
int
getNumInstances
() {
59
return
TTriangle::numberInstance
;
60
}
61
};
62
63
#endif
64
Generated on Thu May 29 2014 23:14:49 for Flow123d by
1.8.4