v0.16.3
Loading...
Searching...
No Matches
CGALInterfaceTypes.hpp
Go to the documentation of this file.
1/** \file CGALInterfaceTypes.hpp
2 * \brief Opt-in CGAL types; not included by MoFEM.hpp.
3 */
4#ifndef MOFEM_CGAL_INTERFACE_TYPES_HPP
5#define MOFEM_CGAL_INTERFACE_TYPES_HPP
6
7#include <CGAL/Delaunay_triangulation_3.h>
8#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
9#include <CGAL/Triangulation_vertex_base_3.h>
10#include <cstdint>
11
12namespace MoFEM {
13
14template <class GT, class Vb = CGAL::Triangulation_vertex_base_3<GT>>
15struct CgalVertexBase : Vb {
16 template <class TDS> struct Rebind_TDS {
17 using Base = typename Vb::template Rebind_TDS<TDS>::Other;
19 };
20 using Vb::Vb;
21 std::uint64_t moabHandle = 0;
22};
23
24struct CGALMesh {
25 using Kernel = CGAL::Exact_predicates_inexact_constructions_kernel;
27 using CellBase = CGAL::Delaunay_triangulation_cell_base_3<Kernel>;
28 using Tds = CGAL::Triangulation_data_structure_3<VertexBase, CellBase>;
29 using Delaunay = CGAL::Delaunay_triangulation_3<Kernel, Tds>;
30
32};
33
34} // namespace MoFEM
35
36#endif
implementation of Data Operators for Forces and Sources
Definition Common.hpp:10
CGAL::Exact_predicates_inexact_constructions_kernel Kernel
CGAL::Delaunay_triangulation_3< Kernel, Tds > Delaunay
CGAL::Triangulation_data_structure_3< VertexBase, CellBase > Tds
CGAL::Delaunay_triangulation_cell_base_3< Kernel > CellBase
typename Vb::template Rebind_TDS< TDS >::Other Base