Flow123d
release_2.1.0-84-g6a13a75
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
class
TTetrahedron
{
25
private
:
26
static
int
numberInstance
;
27
int
id
;
28
29
TPoint
X1
;
30
TPoint
X2
;
31
TPoint
X3
;
32
TPoint
X4
;
33
34
TTriangle
T1
;
35
TTriangle
T2
;
36
TTriangle
T3
;
37
TTriangle
T4
;
38
39
TAbscissa
*
A1
;
40
TAbscissa
*
A2
;
41
TAbscissa
*
A3
;
42
TAbscissa
*
A4
;
43
TAbscissa
*
A5
;
44
TAbscissa
*
A6
;
45
46
double
volume
;
47
48
int
generateId
();
49
void
ComputeVolume
();
50
51
public
:
52
TTetrahedron
();
53
TTetrahedron
(
const
TPoint
&,
const
TPoint
&,
const
TPoint
&,
const
TPoint
&);
54
~TTetrahedron
();
55
56
const
TTriangle
&
GetTriangle
(
int
)
const
;
57
const
TAbscissa
&
GetAbscissa
(
int
)
const
;
58
const
TPoint
&
GetPoint
(
int
)
const
;
59
60
double
GetMin
(
int
)
const
;
61
double
GetMax
(
int
)
const
;
62
63
double
GetVolume
();
64
65
void
SetPoints
(
const
TPoint
& P1,
const
TPoint
& P2,
const
TPoint
& P3,
const
TPoint
& P4);
66
bool
IsInner
(
const
TPoint
&)
const
;
67
68
static
int
getNumInstances
() {
69
return
TTetrahedron::numberInstance
;
70
}
71
};
72
#endif
TTetrahedron::ComputeVolume
void ComputeVolume()
Definition:
tetrahedron.cpp:159
TTetrahedron::SetPoints
void SetPoints(const TPoint &P1, const TPoint &P2, const TPoint &P3, const TPoint &P4)
Definition:
tetrahedron.cpp:175
TTetrahedron::A1
TAbscissa * A1
Definition:
tetrahedron.h:39
TTetrahedron::GetMin
double GetMin(int) const
Definition:
tetrahedron.cpp:123
TTetrahedron::GetPoint
const TPoint & GetPoint(int) const
Definition:
tetrahedron.cpp:109
TTriangle
Definition:
triangle.h:30
TTetrahedron::X1
TPoint X1
Definition:
tetrahedron.h:29
TTetrahedron::GetMax
double GetMax(int) const
Definition:
tetrahedron.cpp:139
TTetrahedron::TTetrahedron
TTetrahedron()
Definition:
tetrahedron.cpp:31
point.h
TTetrahedron::T2
TTriangle T2
Definition:
tetrahedron.h:35
TTetrahedron::X3
TPoint X3
Definition:
tetrahedron.h:31
TTetrahedron::T4
TTriangle T4
Definition:
tetrahedron.h:37
TTetrahedron::numberInstance
static int numberInstance
Definition:
tetrahedron.h:26
TTetrahedron::A4
TAbscissa * A4
Definition:
tetrahedron.h:42
TTetrahedron::~TTetrahedron
~TTetrahedron()
Definition:
tetrahedron.cpp:68
TTetrahedron::GetTriangle
const TTriangle & GetTriangle(int) const
Definition:
tetrahedron.cpp:77
TTetrahedron::getNumInstances
static int getNumInstances()
Definition:
tetrahedron.h:68
TTetrahedron::A2
TAbscissa * A2
Definition:
tetrahedron.h:40
TPoint
Definition:
point.h:27
TTetrahedron::volume
double volume
Definition:
tetrahedron.h:46
TTetrahedron::X4
TPoint X4
Definition:
tetrahedron.h:32
triangle.h
TTetrahedron::GetAbscissa
const TAbscissa & GetAbscissa(int) const
Definition:
tetrahedron.cpp:91
TTetrahedron::A6
TAbscissa * A6
Definition:
tetrahedron.h:44
TTetrahedron::T3
TTriangle T3
Definition:
tetrahedron.h:36
TTetrahedron::T1
TTriangle T1
Definition:
tetrahedron.h:34
TTetrahedron::id
int id
Definition:
tetrahedron.h:27
TTetrahedron::GetVolume
double GetVolume()
Definition:
tetrahedron.cpp:155
TTetrahedron
Definition:
tetrahedron.h:24
TTetrahedron::A3
TAbscissa * A3
Definition:
tetrahedron.h:41
TTetrahedron::generateId
int generateId()
Definition:
tetrahedron.cpp:27
TTetrahedron::X2
TPoint X2
Definition:
tetrahedron.h:30
TTetrahedron::A5
TAbscissa * A5
Definition:
tetrahedron.h:43
TAbscissa
Definition:
abscissa.h:26
TTetrahedron::IsInner
bool IsInner(const TPoint &) const
Definition:
tetrahedron.cpp:196
Generated by
1.8.11