Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] Exact_predicates_exact_constructions_kernel_with_sqrt and Regular Triangulation = compile error
Chronological Thread
- From: Sylvain Pion <>
- To:
- Subject: Re: [cgal-discuss] Exact_predicates_exact_constructions_kernel_with_sqrt and Regular Triangulation = compile error
- Date: Mon, 18 Jun 2007 20:54:53 +0200
Thomas Zangl a écrit :
Thomas Zangl wrote:
I use the "Exact_predicates_exact_constructions_kernel" Kernel and I
need the sqrt function. The manual told me to use the
Exact_predicates_exact_constructions_kernel_with_sqrt kernel and now I
get the following compile error:
Or an alternative might be: how to compute the sqrt using the
Exact_predicates_exact_constructions_kernel numbertype
(lazy_exact<CGAL::gmpq>)?
If it is enough for you to have an approximate sqrt, then:
typedef Exact_predicates_exact_constructions_kernel::FT FT;
...
FT x;
...
FT sqrt_of_x = FT(std::sqrt(CGAL::to_double(x)));
--
Sylvain Pion
INRIA Sophia-Antipolis
Geometrica Project-Team
CGAL, http://cgal.org/
- Exact_predicates_exact_constructions_kernel_with_sqrt and Regular Triangulation = compile error, Thomas Zangl, 06/18/2007
- Re: [cgal-discuss] Exact_predicates_exact_constructions_kernel_with_sqrt and Regular Triangulation = compile error, Thomas Zangl, 06/18/2007
- Re: [cgal-discuss] Exact_predicates_exact_constructions_kernel_with_sqrt and Regular Triangulation = compile error, Sylvain Pion, 06/18/2007
- Re: [cgal-discuss] Exact_predicates_exact_constructions_kernel_with_sqrt and Regular Triangulation = compile error, Thomas Zangl, 06/18/2007
Archive powered by MHonArc 2.6.16.