Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] call of overloaded intersection is ambiguous

Subject: CGAL users discussion list

List archive

[cgal-discuss] call of overloaded intersection is ambiguous


Chronological Thread 
  • From: Vincent Mora <>
  • To:
  • Subject: [cgal-discuss] call of overloaded intersection is ambiguous
  • Date: Mon, 08 Dec 2014 10:12:27 +0100

Hi all,

I need to use intersection( Triangle_3, Triangle_3 ) and union of polygons from
Boolean_set_operations_2.h in the same piece of code.

Unfortunatelty this does not seem possible (see error below).

Is it expected ?

Thanks,

V.




/usr/local/include/CGAL/Triangle_3_Triangle_3_intersection.h:62:64: error: call of overloaded ‘intersection(CGAL::CartesianKernelFunctors::Construct_line_3<CGAL::Simple_cartesian<CGAL::Interval_nt<false> > >::Line_3, CGAL::CartesianKernelFunctors::Construct_line_3<CGAL::Simple_cartesian<CGAL::Interval_nt<false> > >::Line_3, const CGAL::Simple_cartesian<CGAL::Interval_nt<false> >&)’ is ambiguous
Object obj= intersection(Line_3(p,q),Line_3(*prev,curr),k);
^
/usr/local/include/CGAL/Triangle_3_Triangle_3_intersection.h:62:64: note: candidates are:
In file included from /usr/local/include/CGAL/intersection_3_1.h:427:0,
from /usr/local/include/CGAL/intersection_3.h:29,
from /usr/local/include/CGAL/Kernel/function_objects.h:34,
from /usr/local/include/CGAL/Cartesian/function_objects.h:28,
from /usr/local/include/CGAL/Cartesian/Cartesian_base.h:68,
from /usr/local/include/CGAL/Simple_cartesian.h:28,
from /usr/local/include/CGAL/Exact_predicates_exact_constructions_kernel.h:28,
from /home/vmo/SFCGAL/build/include/SFCGAL/Kernel.h:24,
from /home/vmo/SFCGAL/build/include/SFCGAL/numeric.h:29,
from /home/vmo/SFCGAL/build/include/SFCGAL/Coordinate.h:31,
from /home/vmo/SFCGAL/build/include/SFCGAL/Point.h:24,
from /home/vmo/SFCGAL/build/include/SFCGAL/LineString.h:31,
from /home/vmo/SFCGAL/build/include/SFCGAL/Polygon.h:32,
from /home/vmo/SFCGAL/build/include/SFCGAL/algorithm/differencePrimitives.h:3,
from /home/vmo/SFCGAL/src/algorithm/union.cpp:21:
/usr/local/include/CGAL/Intersections_3/intersection_3_1_impl.h:200:1: note: CGAL::Object CGAL::internal::intersection(const typename K::Line_3&, const typename K::Line_3&, const K&) [with K = CGAL::Simple_cartesian<CGAL::Interval_nt<false> >; typename K::Line_3 = CGAL::Line_3<CGAL::Simple_cartesian<CGAL::Interval_nt<false> > >]
intersection(const typename K::Line_3 &l1,
^
In file included from /home/vmo/SFCGAL/build/include/SFCGAL/algorithm/differencePrimitives.h:7:0,
from /home/vmo/SFCGAL/src/algorithm/union.cpp:21:
/usr/local/include/CGAL/Boolean_set_operations_2.h:904:23: note: OutputIterator CGAL::intersection(InputIterator, InputIterator, OutputIterator, unsigned int) [with InputIterator = CGAL::Line_3<CGAL::Simple_cartesian<CGAL::Interval_nt<false> > >; OutputIterator = CGAL::Simple_cartesian<CGAL::Interval_nt<false> >]
inline OutputIterator intersection (InputIterator begin, InputIterator end,
^




Archive powered by MHonArc 2.6.18.

Top of Page