mesh_triangle_interface.h
Go to the documentation of this file.
1 // The libMesh Finite Element Library.
2 // Copyright (C) 2002-2018 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
3 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License, or (at your option) any later version.
8 
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
13 
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 
18 
19 #ifndef LIBMESH_MESH_TRIANGLE_INTERFACE_H
20 #define LIBMESH_MESH_TRIANGLE_INTERFACE_H
21 
22 
23 #include "libmesh/libmesh_config.h"
24 
25 #ifdef LIBMESH_HAVE_TRIANGLE
26 
27 // Local Includes
28 #include "libmesh/libmesh.h"
30 
31 #ifdef LIBMESH_FORWARD_DECLARE_ENUMS
32 namespace libMesh
33 {
34 enum ElemType : int;
35 }
36 #else
37 #include "libmesh/enum_elem_type.h"
38 #endif
39 
40 // C++ includes
41 #include <cstddef>
42 #include <vector>
43 
44 namespace libMesh
45 {
46 
47 // Forward Declarations
48 class UnstructuredMesh;
49 
58 {
59 public:
66  explicit
68 
73 
79  {
86 
97  PSLG = 1,
98 
103  };
104 
110  class Hole;
111  class PolygonHole;
112  class ArbitraryHole;
113 
118  void triangulate();
119 
124 
130 
136 
140  std::string & extra_flags() {return _extra_flags;}
141 
146 
151 
157 
162  void attach_hole_list(const std::vector<Hole*> * holes) {_holes = holes;}
163 
175  std::vector<std::pair<unsigned int, unsigned int>> segments;
176 
177 private:
182 
187  const std::vector<Hole*> * _holes;
188 
194 
199 
204 
208  std::string _extra_flags;
209 
216 
223 
229 
234 };
235 
236 } // namespace libMesh
237 
238 
239 
240 #endif // LIBMESH_HAVE_TRIANGLE
241 
242 #endif // ifndef LIBMESH_MESH_TRIANGLE_INTERFACE_H
MeshBase & mesh
void attach_hole_list(const std::vector< Hole *> *holes)
const std::vector< Hole * > * _holes
Base class for Replicated and Distributed meshes.
std::vector< std::pair< unsigned int, unsigned int > > segments
TriangulationType & triangulation_type()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Temporarily serializes a DistributedMesh for output.
TriangleInterface(UnstructuredMesh &mesh)