Rheolef  7.1
an efficient C++ finite element environment
cgal_traits.h
Go to the documentation of this file.
1 #ifndef _RHEO_CGAL_TRAITS_H
2 #define _RHEO_CGAL_TRAITS_H
3 #include "rheolef/cgal_kernel_float128.h"
24 #include "rheolef/cgal_kernel.h"
25 
26 #pragma GCC diagnostic push
27 #pragma GCC diagnostic ignored "-Weffc++"
28 #pragma GCC diagnostic ignored "-Wignored-attributes"
29 #include <CGAL/Filtered_kernel.h>
30 #pragma GCC diagnostic pop
31 
32 namespace rheolef {
33 
34 template <class T, size_t D> struct geo_cgal_traits {};
35 
36 // The following are equivalent:
37 // typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel;
38 // typedef CGAL::Filtered_kernel<CGAL::Simple_cartesian<T> > Kernel;
39 // Here we based on rheolef::point_basic<T> :
40 template <class T>
41 struct geo_cgal_traits<T,1> {
42  typedef CGAL::Filtered_kernel_adaptor<custom_cgal::kernel_2d<T> > Kernel;
43 };
44 template <class T>
45 struct geo_cgal_traits<T,2> {
46  typedef CGAL::Filtered_kernel_adaptor<custom_cgal::kernel_2d<T> > Kernel;
47 };
48 template <class T>
49 struct geo_cgal_traits<T,3> {
50  typedef CGAL::Filtered_kernel_adaptor<custom_cgal::kernel_3d<T> > Kernel;
51 };
52 
53 } // namespace rheolef
54 #endif // _RHEO_CGAL_TRAITS_H
rheolef::geo_cgal_traits
Definition: cgal_traits.h:34
rheolef::geo_cgal_traits< T, 1 >::Kernel
CGAL::Filtered_kernel_adaptor< custom_cgal::kernel_2d< T > > Kernel
Definition: cgal_traits.h:42
rheolef
This file is part of Rheolef.
Definition: compiler_eigen.h:37
rheolef::geo_cgal_traits< T, 2 >::Kernel
CGAL::Filtered_kernel_adaptor< custom_cgal::kernel_2d< T > > Kernel
Definition: cgal_traits.h:46
rheolef::geo_cgal_traits< T, 3 >::Kernel
CGAL::Filtered_kernel_adaptor< custom_cgal::kernel_3d< T > > Kernel
Definition: cgal_traits.h:50
T
Expr1::float_type T
Definition: field_expr.h:218