Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] DoIntersect_3

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] DoIntersect_3


Chronological Thread 
  • From: "Laurent Rineau (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] DoIntersect_3
  • Date: Thu, 30 Sep 2010 19:24:58 +0200
  • Organization: GeometryFactory

Le jeudi 30 septembre 2010 15:42:46, Vani Murarka a écrit :
> Hi,
>
> I am trying to use DoIntersect_3 of the Spherical Kernel in the following
> way:
>
> typedef
> CGAL::Exact_spherical_kernel_3 EK;
>
> // irrelevant code skipped
>
> bool eIntersect = EK::DoIntersect_3(lArc, c);
> lArc is a Line_arc_3 and c is a Circle_3 both under the
> Exact_spherical_kernel_3.
>
> However, I am getting the following compilation error
> 'DoIntersect_3' : is not a member of
> 'CGAL::Spherical_kernel_3<LinearKernel,AlgebraicKernel>'
>
> Any idea what I am doing wrong? As far as I can make out from the
> documentation, DoIntersect_3 is a member of the Spherical Kernel.

No. Kernel::DoIntersect_3 is the documentation of a model.

The real predicate is Kernel::Do_intersect_3. And that is a functor.

Use it like that:

EK::Do_intersect_3 do_intersect; // create the functor object...
bool eIntersect = do_intersect(lArc, c); // ...and use it

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



Archive powered by MHonArc 2.6.16.

Top of Page