Subject: CGAL users discussion list
List archive
- From: Hugo Mercier <>
- To:
- Subject: Re: [cgal-discuss] CGAL 4.3 : intersection(Triangle_2, Triangle_2)
- Date: Wed, 27 Nov 2013 14:24:39 +0100
Le 27/11/2013 13:17, Laurent Rineau (CGAL/GeometryFactory) a écrit :
> Le Wednesday 27 November 2013 12:14:22 Hugo Mercier a écrit :
>> Hi,
>>
>> I found something strange with the last CGAL 4.3. The following file
>> fails to compile. No good template deduction can be found. It only fails
>> for Triangle_2 x Triangle_2 (Triangle_3 is ok)
>>
>> Apparently
>> CGAL/Intersections_2/Triangle_2_Triangle_2_intersection_impl.h is
>> correctly included, but something prevents it from being considered for
>> candidate templates. I can't manage to see what is the problem.
>>
>> #include <CGAL/Exact_predicates_exact_constructions_kernel.h>
>> #include <CGAL/intersections.h>
>>
>> typedef CGAL::Exact_predicates_exact_constructions_kernel Kernel;
>>
>> int main() {
>> CGAL::Triangle_2<Kernel> tri1, tri2;
>> intersection( tri1, tri2 );
>> }
>
> There must be a bug. What if you include <CGAL/intersections.h> before the
> header of the kernel?
>
> Which compiler have you used?
>
Oups ... my bad ! It actually works very well. I was partially including
.h files from another version of CGAL.
Sorry for the noise ...
--
Hugo Mercier
Oslandia
- [cgal-discuss] CGAL 4.3 : intersection(Triangle_2, Triangle_2), Hugo Mercier, 11/27/2013
- Re: [cgal-discuss] CGAL 4.3 : intersection(Triangle_2, Triangle_2), Laurent Rineau (CGAL/GeometryFactory), 11/27/2013
- Re: [cgal-discuss] CGAL 4.3 : intersection(Triangle_2, Triangle_2), Hugo Mercier, 11/27/2013
- Re: [cgal-discuss] CGAL 4.3 : intersection(Triangle_2, Triangle_2), Hugo Mercier, 11/27/2013
- Re: [cgal-discuss] CGAL 4.3 : intersection(Triangle_2, Triangle_2), Hugo Mercier, 11/27/2013
- Re: [cgal-discuss] CGAL 4.3 : intersection(Triangle_2, Triangle_2), Hugo Mercier, 11/27/2013
- Re: [cgal-discuss] CGAL 4.3 : intersection(Triangle_2, Triangle_2), Andreas Fabri, 11/27/2013
- Re: [cgal-discuss] CGAL 4.3 : intersection(Triangle_2, Triangle_2), Laurent Rineau (CGAL/GeometryFactory), 11/27/2013
Archive powered by MHonArc 2.6.18.