Subject: CGAL users discussion list
List archive
- From: "Laurent Rineau (CGAL/GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Ray_2 type for Exact_predicates_exact_constructions_kernel?
- Date: Fri, 25 Apr 2014 13:30 +0200
- Organization: GeometryFactory
Le Friday 25 April 2014 04:18:09 Tapadi a écrit :
> Hi all,
>
> I am trying to compute Voronoi Diagrams and insert them into 2D arrangements
> (cropping them inside certain faces of the arrangement).
> I was glad to find this example on cgal.org:
>
> *http://doc.cgal.org/latest/Triangulation_2/index.html#title15*
>
> I saw that this example runs with the kernel:
> CGAL::Exact_predicates_inexact_constructions_kernel (*epick*)
>
> However, I am using:
> CGAL::Exact_predicates_exact_constructions_kernel (*epeck*)
>
> ... Which avoids the example from compiling properly. The problems looks
> like *epeck* not having a nested Ray_2 type while *epick* has one.
>
> This sounds weird to me. Does the definition of a ray implies non-rational
> computations? Did I miss something?
You must be missing something. The following program does compile well with
CGAL-4.4. That shows that Ray_2 exists as a nested type (or typedef) for both
kernels. You should show us a minimal and consistent example that shows the
compilation error you have. Probably you will find your answer while trying
to
build it. :-)
#include <CGAL/Exact_predicates_exact_constructions_kernel.h>
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
typedef CGAL::Exact_predicates_inexact_constructions_kernel Epick;
typedef CGAL::Exact_predicates_exact_constructions_kernel Epeck;
int main() {
Epick::Ray_2 er;
Epeck::Ray_2 ir;
return 0;
}
--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/
- [cgal-discuss] Ray_2 type for Exact_predicates_exact_constructions_kernel?, Tapadi, 04/25/2014
- Re: [cgal-discuss] Ray_2 type for Exact_predicates_exact_constructions_kernel?, Laurent Rineau (CGAL/GeometryFactory), 04/25/2014
- Re: [cgal-discuss] Ray_2 type for Exact_predicates_exact_constructions_kernel?, Tapadi, 04/25/2014
- Re: [cgal-discuss] Ray_2 type for Exact_predicates_exact_constructions_kernel?, Laurent Rineau (CGAL/GeometryFactory), 04/25/2014
Archive powered by MHonArc 2.6.18.