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: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Kernel traits to distinguish kernel capability?
  • Date: Wed, 04 Sep 2013 08:48:20 +0200
  • Organization: GeometryFactory

Well, I just added the following:

template<class Kernel>
struct provides_exact_constructions
{
public:
static const bool value = !(std::is_floating_point<typename
Kernel::RT>::value);
};

But shouldn't there be a more systematic approach? What if I need to
know whether or not the kernel provides exact predicates (which the
Cartesian<double> kernel for example does not)?


There exists a tag Has_filtered_predicates which might help you

http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Kernel_23_ref/Concept_Kernel.html

Note that it does not exactly answer your question but for kernels provided by CGAL and using floating point number type it will work.

Sebastien.



Archive powered by MHonArc 2.6.18.

Top of Page