Rheolef  7.2
an efficient C++ finite element environment
 
Loading...
Searching...
No Matches
cgal_traits.h
Go to the documentation of this file.
1#ifndef _RHEO_CGAL_TRAITS_H
2#define _RHEO_CGAL_TRAITS_H
23#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
32namespace rheolef {
33
34template <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> :
40template <class T>
41struct geo_cgal_traits<T,1> {
42 typedef CGAL::Filtered_kernel_adaptor<custom_cgal::kernel_2d<T> > Kernel;
43};
44template <class T>
45struct geo_cgal_traits<T,2> {
46 typedef CGAL::Filtered_kernel_adaptor<custom_cgal::kernel_2d<T> > Kernel;
47};
48template <class T>
49struct 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
Expr1::float_type T
Definition field_expr.h:230
This file is part of Rheolef.
CGAL::Filtered_kernel_adaptor< custom_cgal::kernel_2d< T > > Kernel
Definition cgal_traits.h:42
CGAL::Filtered_kernel_adaptor< custom_cgal::kernel_2d< T > > Kernel
Definition cgal_traits.h:46
CGAL::Filtered_kernel_adaptor< custom_cgal::kernel_3d< T > > Kernel
Definition cgal_traits.h:50