deal.II version GIT relicensing-6842-g793a97d2aa 2026-10-02 14:00:01+00:00
\(\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\}}\)
Loading...
Searching...
No Matches
polygon.h
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
4// Copyright (C) 2025 - 2026 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Detailed license information governing the source code and contributions
9// can be found in LICENSE.md and CONTRIBUTING.md at the top level directory.
10//
11// -----------------------------------------------------------------------------
12
13#ifndef dealii_cgal_polygon_h
14#define dealii_cgal_polygon_h
15
16#include <deal.II/base/config.h>
17
18#ifdef DEAL_II_WITH_CGAL
21
22# include <CGAL/version.h>
23# if CGAL_VERSION_MAJOR >= 6
24# include <CGAL/Installation/internal/disable_deprecation_warnings_and_errors.h>
25# endif
26# include <CGAL/Polygon_2.h>
27# include <CGAL/Polygon_with_holes_2.h>
28
29#endif
30
32
33#ifdef DEAL_II_WITH_CGAL
34namespace CGALWrappers
35{
55 template <typename KernelType>
56 CGAL::Polygon_2<KernelType>
58 const typename Triangulation<2, 2>::cell_iterator &cell,
59 const Mapping<2, 2> &mapping);
60
61
62
71 template <typename KernelType>
72 CGAL::Polygon_with_holes_2<KernelType>
74 const Mapping<2, 2> &mapping);
75
76
77
88 template <typename KernelType>
89 CGAL::Polygon_with_holes_2<KernelType>
91 const CGAL::Polygon_2<KernelType> &boundary_outside,
92 const std::vector<CGAL::Polygon_2<KernelType>> &boundary_holes = {});
93
94
95
115 template <typename KernelType>
116 std::vector<CGAL::Polygon_with_holes_2<KernelType>>
118 const CGAL::Polygon_with_holes_2<KernelType> &polygon_1,
119 const CGAL::Polygon_with_holes_2<KernelType> &polygon_2,
120 const BooleanOperation &boolean_operation);
121} // namespace CGALWrappers
122
123#endif
124
126#endif
Abstract base class for mapping classes.
Definition mapping.h:318
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39
std::vector< CGAL::Polygon_with_holes_2< KernelType > > compute_boolean_operation(const CGAL::Polygon_with_holes_2< KernelType > &polygon_1, const CGAL::Polygon_with_holes_2< KernelType > &polygon_2, const BooleanOperation &boolean_operation)
CGAL::Polygon_2< KernelType > dealii_cell_to_cgal_polygon(const typename Triangulation< 2, 2 >::cell_iterator &cell, const Mapping< 2, 2 > &mapping)
CGAL::Polygon_with_holes_2< KernelType > dealii_tria_to_cgal_polygon(const Triangulation< 2, 2 > &tria, const Mapping< 2, 2 > &mapping)
CGAL::Polygon_with_holes_2< KernelType > polygon_to_polygon_with_holes(const CGAL::Polygon_2< KernelType > &boundary_outside, const std::vector< CGAL::Polygon_2< KernelType > > &boundary_holes={})