Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: segment_3 sphere intersection

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: segment_3 sphere intersection


Chronological Thread 
  • From: Monique Teillaud <>
  • To:
  • Subject: Re: [cgal-discuss] Re: segment_3 sphere intersection
  • Date: Tue, 14 May 2013 19:21:15 +0200

does your code contain the necessary include?
#include <CGAL/Spherical_kernel_intersections.h>

as mentioned at http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Kernel_23_ref/Function_intersection.html

Monique

Le 14/05/13 19:15, mriem a écrit :
Thank you Monique and Sebastien for your answers.

Following your comments I am now trying to test an intersection between a

sphere_3 and a line_arc3.

The problem is the compiler continues to say there is no intersection
function for these types...

Here is the new code

CGAL::Line_arc_3<CGAL::Exact_spherical_kernel_3> cgal_seg;
CGAL::Sphere_3<CGAL::Exact_spherical_kernel_3> cgal_sphere;

CGAL::Object result = CGAL::intersection(cgal_seg, cgal_sphere);

This does not compile, saying

error: no matching function for call to
‘intersection(CGAL::Line_arc_3<CGAL::Spherical_kernel_3&lt;CGAL::Cartesian&lt;CGAL::Gmpq>,
CGAL::Algebraic_kernel_for_spheres_2_3<CGAL::Gmpq> > >&,
CGAL::Sphere_3<CGAL::Spherical_kernel_3&lt;CGAL::Cartesian&lt;CGAL::Gmpq>,
CGAL::Algebraic_kernel_for_spheres_2_3<CGAL::Gmpq> > >&)

and then list all the possibilities ... Can you help me?

regards

Miguel




--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/segment-3-sphere-intersection-tp4657426p4657431.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



--
Monique Teillaud
http://www.inria.fr/sophia/members/Monique.Teillaud/
INRIA Sophia Antipolis - Méditerranée
Institut National de Recherche en Informatique et Automatique



Archive powered by MHonArc 2.6.18.

Top of Page