Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] CGAL 4.3 : intersection(Triangle_2, Triangle_2)

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] CGAL 4.3 : intersection(Triangle_2, Triangle_2)


Chronological Thread 
  • From: "Laurent Rineau (CGAL/GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] CGAL 4.3 : intersection(Triangle_2, Triangle_2)
  • Date: Wed, 27 Nov 2013 13:17:10 +0100
  • Organization: GeometryFactory

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?

--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/




Archive powered by MHonArc 2.6.18.

Top of Page