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: Philipp Moeller <>
  • To: mriem <>
  • Cc:
  • Subject: Re: [cgal-discuss] Re: segment_3 sphere intersection
  • Date: Tue, 14 May 2013 19:41:45 +0200
  • Organization: GeometryFactory

mriem
<>
writes:

> 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;

This should be:

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

The two types should be identical in most cases but this can lead to
ugly surprises with some Kernels.

> 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



Archive powered by MHonArc 2.6.18.

Top of Page