ug4
quadrilateral_util.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016: G-CSC, Goethe University Frankfurt
3  * Author: Sebastian Reiter
4  *
5  * This file is part of UG4.
6  *
7  * UG4 is free software: you can redistribute it and/or modify it under the
8  * terms of the GNU Lesser General Public License version 3 (as published by the
9  * Free Software Foundation) with the following additional attribution
10  * requirements (according to LGPL/GPL v3 §7):
11  *
12  * (1) The following notice must be displayed in the Appropriate Legal Notices
13  * of covered and combined works: "Based on UG4 (www.ug4.org/license)".
14  *
15  * (2) The following notice must be displayed at a prominent place in the
16  * terminal output of covered works: "Based on UG4 (www.ug4.org/license)".
17  *
18  * (3) The following bibliography is recommended for citation and must be
19  * preserved in all covered files:
20  * "Reiter, S., Vogel, A., Heppner, I., Rupp, M., and Wittum, G. A massively
21  * parallel geometric multigrid solver on hierarchically distributed grids.
22  * Computing and visualization in science 16, 4 (2013), 151-164"
23  * "Vogel, A., Reiter, S., Rupp, M., Nägel, A., and Wittum, G. UG4 -- a novel
24  * flexible software system for simulating pde based models on high performance
25  * computers. Computing and visualization in science 16, 4 (2013), 165-179"
26  *
27  * This program is distributed in the hope that it will be useful,
28  * but WITHOUT ANY WARRANTY; without even the implied warranty of
29  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30  * GNU Lesser General Public License for more details.
31  */
32 
33 #ifndef __H__UG_quadrilateral_util
34 #define __H__UG_quadrilateral_util
35 
36 #include "lib_grid/grid/grid.h"
38 #include "common/error.h"
39 
40 namespace ug{
41 
43 
45 UG_API
46 Quadrilateral* CreateQuadrilateral_NoRegistration(Grid& g, Face* tri1, Face* tri2);
47 
49 
50 UG_API
51 Quadrilateral* CreateQuadrilateral(Grid& g, Face* tri1, Face* tri2);
52 
54 
55 UG_API
56 Quadrilateral* ReplaceByQuadrilateral(Grid& g, Face* tri1, Face* tri2);
57 
59 template <class face_iter_t, class TAAPos>
61  Grid& g,
62  face_iter_t facesBegin,
63  face_iter_t facesEnd,
64  TAAPos aaPos);
65 
67 
68 template <class edge_iter_t, class TAAPos>
70  Grid& g,
71  edge_iter_t edgesBegin,
72  edge_iter_t edgesEnd,
73  TAAPos aaPos);
74 
75 
77 
80 template <class face_iter_t>
82  Grid& g,
83  face_iter_t facesBegin,
84  face_iter_t facesEnd);
85 
87 
93 template <class edge_iter_t>
95  Grid& g,
96  edge_iter_t edgesBegin,
97  edge_iter_t edgesEnd);
98 
99 }// end of namespace
100 
101 
103 // include implementation
104 #include "quadrialteral_util_impl.h"
105 
106 #endif //__H__UG_quadrilateral_util
#define UG_API
Definition: ug_config.h:65
the ug namespace
void ReplaceByQuadrilaterals_EdgeBased(Grid &g, edge_iter_t edgesBegin, edge_iter_t edgesEnd, TAAPos aaPos)
Attempts to replace triangles associated with the given set of edges by a set of quadrilaterals.
Definition: quadrialteral_util_impl.h:85
void ReplaceByQuadrilaterals_FaceBasedNoSort(Grid &g, face_iter_t facesBegin, face_iter_t facesEnd)
Attempts to replace the given set of faces by a set of quadrilaterals.
Definition: quadrialteral_util_impl.h:129
Quadrilateral * ReplaceByQuadrilateral(Grid &g, Face *tri1, Face *tri2)
Replaces the specified triangles by one quadrilateral.
Definition: quadrilateral_util.cpp:69
void ReplaceByQuadrilaterals_EdgeBasedNoSort(Grid &g, edge_iter_t edgesBegin, edge_iter_t edgesEnd)
Attempts to replace triangles associated with the given set of edges by a set of quadrilaterals.
Definition: quadrialteral_util_impl.h:148
Quadrilateral * CreateQuadrilateral(Grid &g, Face *tri1, Face *tri2)
Creates a new quadrilateral from the specified triangles in the specified grid.
Definition: quadrilateral_util.cpp:62
Quadrilateral * CreateQuadrilateral_NoRegistration(Grid &g, Face *tri1, Face *tri2)
Creates a new quadrilateral from the specified triangles but doesn't register it at the grid.
Definition: quadrilateral_util.cpp:38
void ReplaceByQuadrilaterals_FaceBased(Grid &g, face_iter_t facesBegin, face_iter_t facesEnd, TAAPos aaPos)
Attempts to replace the given set of triangles by a set of quadrilaterals.
Definition: quadrialteral_util_impl.h:45