Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] example of parsing the element of isect_list of cgal::intersection(o1, o2, o3, isect_list)

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] example of parsing the element of isect_list of cgal::intersection(o1, o2, o3, isect_list)


Chronological Thread 
  • From: Yajie Yan <>
  • To:
  • Subject: Re: [cgal-discuss] example of parsing the element of isect_list of cgal::intersection(o1, o2, o3, isect_list)
  • Date: Mon, 2 Jun 2014 12:36:46 -0500

Thanks for the reply!

Yes I already found that before asking the question. I didn't know
what to do if the intersection result should be of type
std::pair<circular_arc_point_3, unsigned>, but it turns out that you
can still object_cast it. Is it because there is another layer of
abstraction upon std::pair that allows one to do that?

Thanks again!

On Mon, Jun 2, 2014 at 12:26 PM, Sebastien Loriot (GeometryFactory)
<>
wrote:
> On 06/02/2014 05:53 AM, Yajie Yan wrote:
>>
>> Hi all,
>>
>> I want to compute intersections among three spheres using
>> CGAL::intersection which takes in three objects and a vector to store
>> intersections. According to the reference manual, the return type
>> could be a std::pair<circular_arc_point_3, unsigned>. In that case, I
>> am pretty stuck as of how to use object_cast or boost::get to cast an
>> element of the intersection list to that type in order to further
>> analyze the object. Could someone show me an example of the correct
>> way of doing this?
>>
>> Hope my question makes sense. Thanks!
>>
>> Yajie.
>>
> Did you find this page already?
>
> http://doc.cgal.org/latest/STL_Extension/classCGAL_1_1Object.htm
>
> Sebastien.
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://sympa.inria.fr/sympa/info/cgal-discuss
>
>



Archive powered by MHonArc 2.6.18.

Top of Page