cgal_traits.h
Go to the documentation of this file.
#ifndef _RHEO_CGAL_TRAITS_H
#define _RHEO_CGAL_TRAITS_H
#include "rheolef/cgal_kernel_float128.h"
#include "rheolef/cgal_kernel.h"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++"
#pragma GCC diagnostic ignored "-Wignored-attributes"
#include <CGAL/Filtered_kernel.h>
#pragma GCC diagnostic pop
namespace rheolef {
template <class T, size_t D> struct geo_cgal_traits {};
// The following are equivalent:
// typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel;
// typedef CGAL::Filtered_kernel<CGAL::Simple_cartesian<T> > Kernel;
// Here we based on rheolef::point_basic<T> :
template <class T>
struct geo_cgal_traits<T,1> {
typedef CGAL::Filtered_kernel_adaptor<custom_cgal::kernel_2d<T> > Kernel;
};
template <class T>
struct geo_cgal_traits<T,2> {
typedef CGAL::Filtered_kernel_adaptor<custom_cgal::kernel_2d<T> > Kernel;
};
template <class T>
struct geo_cgal_traits<T,3> {
typedef CGAL::Filtered_kernel_adaptor<custom_cgal::kernel_3d<T> > Kernel;
};
} // namespace rheolef
#endif // _RHEO_CGAL_TRAITS_H
T
Expr1::float_type T
Definition: field_expr.h:261
rheolef
This file is part of Rheolef.
Definition: compiler_eigen.h:37
rheolef::geo_cgal_traits< T, 1 >::Kernel
CGAL::Filtered_kernel_adaptor< custom_cgal::kernel_2d< T > > Kernel
Definition: cgal_traits.h:42
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
rheolef::geo_cgal_traits
Definition: cgal_traits.h:34