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