mesh_tetgen_interface.h
Go to the documentation of this file.
1 // The libMesh Finite Element Library.
2 // Copyright (C) 2002-2014 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_TETGEN_INTERFACE_H
20 #define LIBMESH_MESH_TETGEN_INTERFACE_H
21 
22 #include "libmesh/libmesh_config.h"
23 #ifdef LIBMESH_HAVE_TETGEN
24 
25 
26 // Local includes
27 #include "libmesh/elem.h"
29 #include "libmesh/point.h" // used for specifying holes
30 
31 // C++ includes
32 #include <cstddef>
33 #include <map>
34 #include <string>
35 #include <vector>
36 
37 namespace libMesh
38 {
39  // Forward Declarations
40  class UnstructuredMesh;
41  class TetGenWrapper;
42 
43 
54  {
55  public:
56 
60  explicit
62 
67 
72  void triangulate_pointset ();
73 
78  void pointset_convexhull ();
79 
85  void triangulate_conformingDelaunayMesh (double quality_constraint=0.,
86  double volume_constraint=0.);
87 
93  void triangulate_conformingDelaunayMesh_carvehole (const std::vector<Point>& holes,
94  double quality_constraint=0.,
95  double volume_constraint=0.);
96 
97 
98 
99  protected:
106  void fill_pointlist(TetGenWrapper& wrapper);
107 
112  void assign_nodes_to_elem(unsigned* node_labels, Elem* elem);
113 
126  unsigned check_hull_integrity();
127 
134  void process_hull_integrity_result(unsigned result);
135 
141 
146 
154  std::vector<unsigned> _sequential_to_libmesh_node_map;
155 
160 
161  };
162 
163 } // namespace libMesh
164 
165 #endif // LIBMESH_HAVE_TETGEN
166 
167 #endif // LIBMESH_MESH_TETGEN_INTERFACE_H

Site Created By: libMesh Developers
Last modified: February 07 2014 16:57:06 UTC

Hosted By:
SourceForge.net Logo