Reference documentation for deal.II version 9.1.1
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
boundary_lib.cc
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2014 - 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.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 
17 #include <deal.II/opencascade/boundary_lib.h>
18 
19 #ifdef DEAL_II_WITH_OPENCASCADE
20 
21 DEAL_II_NAMESPACE_OPEN
22 
23 namespace OpenCASCADE
24 {
25  template <int dim, int spacedim>
26  std::unique_ptr<Manifold<dim, spacedim>>
28  {
29  return std::unique_ptr<Manifold<dim, spacedim>>(
30  new NormalProjectionBoundary(this->sh, this->tolerance));
31  }
32 
33 
34 
35  template <int dim, int spacedim>
36  std::unique_ptr<Manifold<dim, spacedim>>
38  {
39  return std::unique_ptr<Manifold<dim, spacedim>>(
40  new DirectionalProjectionBoundary(this->sh,
41  this->direction,
42  this->tolerance));
43  }
44 
45 
46 
47  template <int dim, int spacedim>
48  std::unique_ptr<Manifold<dim, spacedim>>
50  {
51  return std::unique_ptr<Manifold<dim, spacedim>>(
52  new NormalToMeshProjectionBoundary(this->sh, this->tolerance));
53  }
54 // Explicit instantiations
55 # include "boundary_lib.inst"
56 } // namespace OpenCASCADE
57 
58 DEAL_II_NAMESPACE_CLOSE
59 
60 #endif
virtual std::unique_ptr< Manifold< dim, spacedim > > clone() const override
Definition: boundary_lib.cc:37
virtual std::unique_ptr< Manifold< dim, spacedim > > clone() const override
Definition: boundary_lib.cc:27
virtual std::unique_ptr< Manifold< dim, spacedim > > clone() const override
Definition: boundary_lib.cc:49