Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Kernel traits to distinguish kernel capability?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Kernel traits to distinguish kernel capability?


Chronological Thread 
  • From: Mariette Yvinec <>
  • To:
  • Subject: Re: [cgal-discuss] Kernel traits to distinguish kernel capability?
  • Date: Thu, 05 Sep 2013 11:56:36 +0200

I had about the same problem when coding the
Constrained_triagulation_2
and Delaunay_constrained_triangulation_2 classes.
To solve it, I used a Tag, corresponding to the template parameter called Itag
in the API of these classes

Le 03/09/13 16:26, ax487 a écrit :
Hello all,

I am currently trying to make my algorithms work with different types of
kernels: Up to now I have only been working using a kernel providing
exact construction, now I am trying to write a correct implementation of
my algorithm on a kernel that only provides exact predicates and uses
floating point based construction. Clearly this requires some additional
work. I would like to avoid that additional work on kernels providing
exact construction. To this end I need a method to tell if a given
kernel provides exact construction. I am currently working using
#ifdef's, but instead I would like use templates in my classes and
functions. What I need is something like a static function
`Kernel::provides_exact_construction()' which I could call in a method
like `template <class Kernel> void calculate(...)'. I did not find
anything like that in the documentation so far, is there a method to
obtain the information from CGAL?

ax487


-- 
Mariette Yvinec
Geometrica project team
INRIA  Sophia-Antipolis  





Archive powered by MHonArc 2.6.18.

Top of Page