Flow123d
release_2.2.0-914-gf1a3a4f
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
/*!
2
*
3
* Copyright (C) 2015 Technical University of Liberec. All rights reserved.
4
*
5
* This program is free software; you can redistribute it and/or modify it under
6
* the terms of the GNU General Public License version 3 as published by the
7
* Free Software Foundation. (http://www.gnu.org/licenses/gpl-3.0.en.html)
8
*
9
* This program is distributed in the hope that it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
*
13
*
14
* @file tetrahedron.h
15
* @brief
16
*/
17
18
#ifndef tetrahedronH
19
#define tetrahedronH
20
21
#include "
point.h
"
22
#include "
triangle.h
"
23
24
namespace
ngh
{
25
26
class
TTetrahedron
{
27
private
:
28
static
int
numberInstance
;
29
int
id
;
30
31
TPoint
X1
;
32
TPoint
X2
;
33
TPoint
X3
;
34
TPoint
X4
;
35
36
TTriangle
T1
;
37
TTriangle
T2
;
38
TTriangle
T3
;
39
TTriangle
T4
;
40
41
TAbscissa
*
A1
;
42
TAbscissa
*
A2
;
43
TAbscissa
*
A3
;
44
TAbscissa
*
A4
;
45
TAbscissa
*
A5
;
46
TAbscissa
*
A6
;
47
48
double
volume
;
49
50
int
generateId
();
51
void
ComputeVolume
();
52
53
public
:
54
TTetrahedron
();
55
TTetrahedron
(
const
TPoint
&,
const
TPoint
&,
const
TPoint
&,
const
TPoint
&);
56
~TTetrahedron
();
57
58
const
TTriangle
&
GetTriangle
(
int
)
const
;
59
const
TAbscissa
&
GetAbscissa
(
int
)
const
;
60
const
TPoint
&
GetPoint
(
int
)
const
;
61
62
double
GetMin
(
int
)
const
;
63
double
GetMax
(
int
)
const
;
64
65
double
GetVolume
();
66
67
void
SetPoints
(
const
TPoint
& P1,
const
TPoint
& P2,
const
TPoint
& P3,
const
TPoint
& P4);
68
bool
IsInner
(
const
TPoint
&)
const
;
69
70
static
int
getNumInstances
() {
71
return
TTetrahedron::numberInstance
;
72
}
73
};
74
75
}
// namespace ngh
76
77
#endif
ngh::TTetrahedron::GetVolume
double GetVolume()
Definition:
tetrahedron.cpp:158
ngh::TTetrahedron::X2
TPoint X2
Definition:
tetrahedron.h:32
ngh::TTetrahedron::X4
TPoint X4
Definition:
tetrahedron.h:34
ngh::TTetrahedron::A3
TAbscissa * A3
Definition:
tetrahedron.h:43
ngh::TTetrahedron::SetPoints
void SetPoints(const TPoint &P1, const TPoint &P2, const TPoint &P3, const TPoint &P4)
Definition:
tetrahedron.cpp:178
ngh::TTetrahedron::GetAbscissa
const TAbscissa & GetAbscissa(int) const
Definition:
tetrahedron.cpp:94
ngh::TTetrahedron::IsInner
bool IsInner(const TPoint &) const
Definition:
tetrahedron.cpp:199
ngh
Definition:
abscissa.h:25
point.h
ngh::TTetrahedron::GetMax
double GetMax(int) const
Definition:
tetrahedron.cpp:142
ngh::TTetrahedron::A5
TAbscissa * A5
Definition:
tetrahedron.h:45
ngh::TTetrahedron::TTetrahedron
TTetrahedron()
Definition:
tetrahedron.cpp:34
ngh::TTetrahedron::numberInstance
static int numberInstance
Definition:
tetrahedron.h:28
ngh::TTetrahedron::A1
TAbscissa * A1
Definition:
tetrahedron.h:41
ngh::TTetrahedron::T4
TTriangle T4
Definition:
tetrahedron.h:39
ngh::TTetrahedron
Definition:
tetrahedron.h:26
ngh::TTetrahedron::generateId
int generateId()
Definition:
tetrahedron.cpp:30
triangle.h
ngh::TTetrahedron::T3
TTriangle T3
Definition:
tetrahedron.h:38
ngh::TTetrahedron::id
int id
Definition:
tetrahedron.h:29
ngh::TAbscissa
Definition:
abscissa.h:28
ngh::TTetrahedron::~TTetrahedron
~TTetrahedron()
Definition:
tetrahedron.cpp:71
ngh::TPoint
Definition:
point.h:29
ngh::TTriangle
Definition:
triangle.h:31
ngh::TTetrahedron::GetPoint
const TPoint & GetPoint(int) const
Definition:
tetrahedron.cpp:112
ngh::TTetrahedron::A2
TAbscissa * A2
Definition:
tetrahedron.h:42
ngh::TTetrahedron::ComputeVolume
void ComputeVolume()
Definition:
tetrahedron.cpp:162
ngh::TTetrahedron::GetTriangle
const TTriangle & GetTriangle(int) const
Definition:
tetrahedron.cpp:80
ngh::TTetrahedron::X3
TPoint X3
Definition:
tetrahedron.h:33
ngh::TTetrahedron::A6
TAbscissa * A6
Definition:
tetrahedron.h:46
ngh::TTetrahedron::T1
TTriangle T1
Definition:
tetrahedron.h:36
ngh::TTetrahedron::GetMin
double GetMin(int) const
Definition:
tetrahedron.cpp:126
ngh::TTetrahedron::A4
TAbscissa * A4
Definition:
tetrahedron.h:44
ngh::TTetrahedron::volume
double volume
Definition:
tetrahedron.h:48
ngh::TTetrahedron::getNumInstances
static int getNumInstances()
Definition:
tetrahedron.h:70
ngh::TTetrahedron::T2
TTriangle T2
Definition:
tetrahedron.h:37
ngh::TTetrahedron::X1
TPoint X1
Definition:
tetrahedron.h:31
Generated by
1.8.11