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: Pedro Machado Manhaes de Castro <>
  • To:
  • Subject: Re: [cgal-discuss] Re: segment_3 sphere intersection
  • Date: Tue, 14 May 2013 20:44:47 +0200

The following code compiles here. I tested with CGAL 3.9 (your version, if I understood).

#include <CGAL/Spherical_kernel_intersections.h>
#include <CGAL/Exact_spherical_kernel_3.h>

int main() {
CGAL::Line_arc_3< CGAL::Exact_spherical_kernel_3 > cgal_seg;
CGAL::Sphere_3< CGAL::Exact_spherical_kernel_3 > cgal_sphere;
std::vector< CGAL::Object > intersecs;
CGAL::intersection(cgal_seg, cgal_sphere,std::back_inserter(intersecs));
return 0;
}

Best regards,
Pedro



2013/5/14 mriem <>
Hello Everyone

I just wanted to say I already found the solution, so don't waist your time
on me, at least not this time :)

The problem was I was not adding the third argument to the function ...

The following code compiles ...

#include <CGAL/Spherical_kernel_intersections.h>

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

std::vector< CGAL::Object > intersecs;
CGAL::intersection(cgal_seg, cgal_sphere,std::back_inserter(intersecs));

Thanks to all

Miguel



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

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





--
Pedro Machado Manhães de Castro
Centro de Informática - Universidade Federal de Pernambuco
Professor Adjunto I
http://www.cin.ufpe.br/~pmmc/



Archive powered by MHonArc 2.6.18.

Top of Page