Reference documentation for deal.II version 9.2.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
boundary_lib.cc
Go to the documentation of this file.
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 
18 
19 #ifdef DEAL_II_WITH_OPENCASCADE
20 
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 
59 
60 #endif
OpenCASCADE::NormalProjectionBoundary
Definition: boundary_lib.h:60
OpenCASCADE::NormalProjectionBoundary::clone
virtual std::unique_ptr< Manifold< dim, spacedim > > clone() const override
Definition: boundary_lib.cc:27
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
OpenCASCADE
Definition: boundary_lib.h:33
boundary_lib.h
OpenCASCADE::NormalToMeshProjectionBoundary::clone
virtual std::unique_ptr< Manifold< dim, spacedim > > clone() const override
Definition: boundary_lib.cc:49
OpenCASCADE::DirectionalProjectionBoundary::clone
virtual std::unique_ptr< Manifold< dim, spacedim > > clone() const override
Definition: boundary_lib.cc:37
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
OpenCASCADE::NormalToMeshProjectionBoundary
Definition: boundary_lib.h:167
OpenCASCADE::DirectionalProjectionBoundary
Definition: boundary_lib.h:101