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: Vani Murarka <>
  • To:
  • Subject: Re: [cgal-discuss] DoIntersect_3
  • Date: Thu, 30 Sep 2010 13:43:34 -0400
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=Ki5QufUB7J21CkvBDSiZwPowWQJr281zub0Yl+nqQh6fWMtpiWk9wojh0J5B8vv26H lwXR5/mJjdbIfKF0YzPftqALCm6KykteLNNlH4cNzTDKSdhU7vyMxuXYdR9SdCSK/YyM ifdpnvR9zoKNDzcrXyMiL9NWYxs5PUCrjbKsU=

Thank you Laurent.

On 30 September 2010 13:24, Laurent Rineau (GeometryFactory) <> wrote:
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/

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss





Archive powered by MHonArc 2.6.16.

Top of Page