Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Circle_2 and Segment_2 intersection

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Circle_2 and Segment_2 intersection


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Circle_2 and Segment_2 intersection
  • Date: Tue, 07 Jul 2015 09:04:10 +0200
  • Organization: GeometryFactory

The type is boost::optional< boost::variant<T..> > where the types in the variant depends on what you call intersection with.
In you case, it can only be std::pair<Circular_arc_point_2<CircularKernel>, unsigned>

http://doc.cgal.org/latest/Kernel_23/group__intersection__circular__grp.html


Have a look at the example on this page how to get the type out of the boost one:
http://doc.cgal.org/latest/Kernel_23/group__intersection__linear__grp.html

Sebastien.

On 07/07/2015 08:56 AM, Dylan Lawrence wrote:
After quite a bit of rewrites I was able to actually get the
intersections running using CGAL::intersection() I know my vector
contains the intersections however what exactly is in that vector. It
seems to be an extension of a boost type but it's unclear what it is.
Essentially I have my intersections, but I do not understand how to
access them to get the point of incidence for an intersection.

On Tue, Jun 23, 2015 at 12:55 PM, Laurent Rineau (CGAL/GeometryFactory)
<

<mailto:>>
wrote:

Le Tuesday 23 June 2015 16:22:27 Monique Teillaud a écrit :
> a Line_arc_2 can be constructed from a Segment_2

>http://doc.cgal.org/latest/Circular_kernel_2/classCGAL_1_1Line__arc__2.html
>
> then you can intersect it with a circle or a circular arc

>http://doc.cgal.org/latest/Circular_kernel_2/classCircularKernel_1_1DoInters
> ect__2.html
> Le 23/06/15 04:22, dlawre14 a écrit :
> > I've done some searching of the docs but cannot find any entry of a
> > Circle_2 and Segment_2 intersecting. Can such a thing be done or do I
> > need to convert the Segment_2 to another type?

See also :

- the Intersect_2 functor:


http://doc.cgal.org/latest/Circular_kernel_2/classCircularKernel_1_1Intersect__2.html

- the corresponding 'do_intersect' and 'intersection' global
functions
overloads:


http://doc.cgal.org/latest/Kernel_23/group__do__intersect__circular__grp.html

http://doc.cgal.org/latest/Kernel_23/group__intersection__circular__grp.html

--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/


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





--
Dylan Lawrence
Masters Student
Bioinformatics and Computational Biology




Archive powered by MHonArc 2.6.18.

Top of Page