Reference documentation for deal.II version 9.0.0
utilities.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2018 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE at
12 // the top level of the deal.II distribution.
13 //
14 // ---------------------------------------------------------------------
15 
16 
17 #ifndef dealii_gmsh_parameters_h
18 #define dealii_gmsh_parameters_h
19 
20 #include <deal.II/base/config.h>
21 
22 #ifdef DEAL_II_WITH_GMSH
23 
24 #ifdef DEAL_II_WITH_OPENCASCADE
25 #include <TopoDS_Shape.hxx>
26 #include <TopoDS_Face.hxx>
27 #include <TopoDS_Edge.hxx>
28 #include <TopoDS_Vertex.hxx>
29 #include <TopoDS_Compound.hxx>
30 #include <TopoDS_CompSolid.hxx>
31 #endif
32 
33 #include <deal.II/base/parameter_handler.h>
34 #include <deal.II/grid/tria.h>
35 
36 DEAL_II_NAMESPACE_OPEN
37 
43 namespace Gmsh
44 {
45 
52  {
53  public:
58  const std::string &output_base_name="");
59 
64 
71  double characteristic_length = 1.0;
72 
79  std::string output_base_name = "";
80  };
81 
82 #ifdef DEAL_II_WITH_OPENCASCADE
83 
91  template <int spacedim>
92  void
93  create_triangulation_from_boundary_curve(const TopoDS_Edge &boundary,
96 #endif
97 }
98 
99 DEAL_II_NAMESPACE_CLOSE
100 
101 #endif
102 #endif
void create_triangulation_from_boundary_curve(const TopoDS_Edge &boundary, Triangulation< 2, spacedim > &tria, const AdditionalParameters &prm=AdditionalParameters())
Definition: utilities.cc:52
void add_parameters(ParameterHandler &prm)
Definition: utilities.cc:38
std::string output_base_name
Definition: utilities.h:79
Definition: utilities.h:43
AdditionalParameters(const double characteristic_length=1.0, const std::string &output_base_name="")
Definition: utilities.cc:30