20#ifdef DEAL_II_WITH_CGAL
26 template <
typename dealiiFace,
typename CGAL_Mesh>
30 const std::map<unsigned int, typename CGAL_Mesh::Vertex_index> &
deal2cgal,
35 std::vector<typename CGAL_Mesh::Vertex_index> indices;
44 indices = {
deal2cgal.at(face->vertex_index(0)),
51 indices = {
deal2cgal.at(face->vertex_index(0)),
60 std::reverse(indices.begin(), indices.end());
65 "CGAL encountered a orientation problem that it "
66 "was not able to solve."));
71 template <
typename dealiiFace,
typename CGAL_Mesh>
75 std::map<unsigned int, typename CGAL_Mesh::Vertex_index> &
deal2cgal,
81 CGALWrappers::dealii_point_to_cgal_point<typename CGAL_Mesh::Point>(
93 template <
typename CGALPo
intType,
int dim,
int spacedim>
102 const auto &
vertices = mapping.get_vertices(cell);
103 std::map<unsigned int, typename Mesh::Vertex_index>
deal2cgal;
131 for (
const auto &f : cell->face_indices())
138 if (cell->face_orientation(f) ==
false)
146 template <
typename CGALPo
intType,
int dim,
int spacedim>
149 const ::Triangulation<dim, spacedim> &
tria,
154 "Triangulation cannot be empty upon calling this function."));
157 "The surface mesh must be empty upon calling this function."));
163 std::map<unsigned int, Vertex_index>
deal2cgal;
164 if constexpr (dim == 2)
166 for (
const auto &cell :
tria.active_cell_iterators())
172 else if constexpr (dim == 3 && spacedim == 3)
174 for (
const auto &cell :
tria.active_cell_iterators())
176 for (
const auto &f : cell->face_indices())
178 if (cell->face(f)->at_boundary())
184 (f % 2 == 0 || cell->n_vertices() != 8));
193# include "surface_mesh.inst"
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
static ::ExceptionBase & ExcImpossibleInDimSpacedim(int arg1, int arg2)
#define Assert(cond, exc)
static ::ExceptionBase & ExcImpossibleInDim(int arg1)
static ::ExceptionBase & ExcInternalError()
static ::ExceptionBase & ExcMessage(std::string arg1)
void dealii_tria_to_cgal_surface_mesh(const ::Triangulation< dim, spacedim > &triangulation, CGAL::Surface_mesh< CGALPointType > &mesh)
void dealii_cell_to_cgal_surface_mesh(const typename ::Triangulation< dim, spacedim >::cell_iterator &cell, const ::Mapping< dim, spacedim > &mapping, CGAL::Surface_mesh< CGALPointType > &mesh)
constexpr const ReferenceCell Quadrilateral
constexpr const ReferenceCell Triangle
constexpr const ReferenceCell Hexahedron
constexpr const ReferenceCell Line
const ::Triangulation< dim, spacedim > & tria