Flow123d
release_2.2.0-914-gf1a3a4f
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
flow123d
src
mesh
ngh
include
intersection.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 intersection.h
15
* @brief
16
*/
17
18
#ifndef intersectionH
19
#define intersectionH
20
21
#include "
bisector.h
"
22
#include "
abscissa.h
"
23
#include "
point.h
"
24
#include "
plain.h
"
25
#include "
triangle.h
"
26
#include "
tetrahedron.h
"
27
#include "
intersectionLocal.h
"
28
29
namespace
ngh
{
30
31
typedef
enum
Intersections
{
32
none
,
33
unknown
,
34
point
,
35
line
,
36
area
37
}
TIntersectionType
;
38
39
typedef
enum
Positions
{
40
skew
,
41
parallel
,
42
intersecting
,
43
same
,
44
belong
45
}
TPosition
;
46
47
void
GetIntersection
(
const
TBisector
&,
const
TBisector
&, TPosition &,
48
double
&,
double
&);
49
void
GetIntersection
(
const
TAbscissa
&,
const
TAbscissa
&, TPosition &,
50
double
&,
double
&);
51
void
GetIntersection
(
const
TAbscissa
&,
const
TAbscissa
&,
IntersectionLocal
* & insec);
52
53
void
GetIntersection
(
const
TBisector
&,
const
TAbscissa
&, TPosition &,
54
double
&,
double
&);
55
void
GetIntersection
(
const
TBisector
&,
const
TAbscissa
&,
IntersectionLocal
* & insec);
56
57
void
GetIntersection
(
const
TAbscissa
&,
const
TBisector
&, TPosition &,
58
double
&,
double
&);
59
void
GetIntersection
(
const
TAbscissa
&,
const
TBisector
&,
IntersectionLocal
* & insec);
60
61
void
GetIntersection
(
const
TPlain
&,
const
TPlain
&,
62
TPosition &,
TBisector
*);
63
void
GetIntersection
(
const
TPlain
&,
const
TBisector
&,
64
TPosition &,
TPoint
*);
65
void
GetIntersection
(
const
TBisector
&,
const
TPlain
&,
66
TPosition &,
double
&);
67
void
GetIntersection
(
const
TBisector
&,
const
TPlain
&,
68
TPosition &,
TPoint
*);
69
void
GetIntersection
(
const
TTriangle
&,
const
TTriangle
&,
70
TIntersectionType &,
double
&);
71
void
GetIntersection
(
const
TBisector
&,
const
TTriangle
&,
IntersectionLocal
* & insec);
72
73
void
GetIntersection
(
const
TAbscissa
&,
const
TTriangle
&,
IntersectionLocal
* & insec);
74
75
void
GetIntersection
(
const
TAbscissa
&,
const
TTetrahedron
&,
76
TIntersectionType &,
double
&);
77
void
GetIntersection
(
const
TTriangle
&,
const
TTetrahedron
&,
78
TIntersectionType &,
double
&);
79
80
template
<
class
A,
class
B>
bool
QuickIntersectionTest
(
const
A &a,
const
B &b);
81
82
double
Distance
(
const
TBisector
&,
const
TPoint
&);
83
double
Distance
(
const
TPlain
&,
const
TPoint
&);
84
double
Distance
(
const
TPoint
&,
const
TPoint
&);
85
86
}
// namespace ngh
87
88
#endif
ngh::GetIntersection
void GetIntersection(const TBisector &, const TBisector &, TPosition &, double &, double &)
Definition:
intersection.cpp:34
ngh::area
Definition:
intersection.h:36
ngh::Intersections
Intersections
Definition:
intersection.h:31
ngh::none
Definition:
intersection.h:32
ngh::TPosition
enum ngh::Positions TPosition
ngh::QuickIntersectionTest
bool QuickIntersectionTest(const A &a, const B &b)
Definition:
intersection.cpp:1117
plain.h
ngh
Definition:
abscissa.h:25
point.h
ngh::TPlain
Definition:
plain.h:27
ngh::belong
Definition:
intersection.h:44
tetrahedron.h
ngh::point
Definition:
intersection.h:34
abscissa.h
ngh::Distance
double Distance(const TBisector &, const TPoint &)
Definition:
intersection.cpp:368
bisector.h
ngh::TTetrahedron
Definition:
tetrahedron.h:26
ngh::intersecting
Definition:
intersection.h:42
triangle.h
ngh::IntersectionLocal
Definition:
intersectionLocal.h:51
ngh::TAbscissa
Definition:
abscissa.h:28
ngh::parallel
Definition:
intersection.h:41
ngh::skew
Definition:
intersection.h:40
ngh::TPoint
Definition:
point.h:29
ngh::TTriangle
Definition:
triangle.h:31
ngh::TIntersectionType
enum ngh::Intersections TIntersectionType
ngh::line
Definition:
intersection.h:35
intersectionLocal.h
ngh::TBisector
Definition:
bisector.h:31
ngh::Positions
Positions
Definition:
intersection.h:39
ngh::same
Definition:
intersection.h:43
ngh::unknown
Definition:
intersection.h:33
Generated by
1.8.11