indexedFaceI.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 \*---------------------------------------------------------------------------*/
25 
26 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
27 
28 template<class Gt, class Fb>
30 :
31  Fb(),
32  index_(CHANGED)
33 {}
34 
35 
36 template<class Gt, class Fb>
38 (
39  Vertex_handle v0,
40  Vertex_handle v1,
41  Vertex_handle v2
42 )
43 :
44  Fb(v0, v1, v2),
45  index_(CHANGED)
46 {}
47 
48 
49 template<class Gt, class Fb>
51 (
52  Vertex_handle v0,
53  Vertex_handle v1,
54  Vertex_handle v2,
55  Face_handle n0,
56  Face_handle n1,
57  Face_handle n2
58 )
59 :
60  Fb(v0, v1, v2, n0, n1, n2),
61  index_(CHANGED)
62 {}
63 
64 
65 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
66 
67 template<class Gt, class Fb>
69 {
70  index_ = CHANGED;
71  Fb::set_vertex(i, v);
72 }
73 
74 
75 template<class Gt, class Fb>
77 {
78  index_ = CHANGED;
80 }
81 
82 
83 template<class Gt, class Fb>
85 (
86  Vertex_handle v0,
87  Vertex_handle v1,
88  Vertex_handle v2
89 )
90 {
91  index_ = CHANGED;
92  Fb::set_vertices(v0, v1, v2);
93 }
94 
95 
96 template<class Gt, class Fb>
98 {
99  return index_;
100 }
101 
102 
103 template<class Gt, class Fb>
105 {
106  return index_;
107 }
108 
109 
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Fb::Face_handle Face_handle
Definition: indexedFace.H:70
void set_vertex(int i, Vertex_handle v)
Definition: indexedFaceI.H:68
Fb::Vertex_handle Vertex_handle
Definition: indexedFace.H:69
CGAL::indexedFace< K > Fb
An indexed form of CGAL::Triangulation_face_base_2<K> used to keep track of the vertices in the trian...
Definition: indexedFace.H:48