Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] do_intersect visitor pattern

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] do_intersect visitor pattern


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] do_intersect visitor pattern
  • Date: Mon, 17 Oct 2011 22:12:56 -0700

Have a look at this chapter:

http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Box_intersection_d/Chapter_main.html

and in particular the following example you can adapt
to polygon. Note that you can also pass a functor instead
of a function.

http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Box_intersection_d/Chapter_main.html#Section_62.5



Sebastien.

On 10/17/2011 07:45 PM, Graviton wrote:
I have a list of polygons, and I want to check whether any of them intersect
with others or not ( predicate is sufficient, I just want to know whether A
polygon intersects with B, that's it).

And since I have a list of polygons, I want to use do_intersect and I want
to keep the index of the intersected polygons. It would be great if
do_intersect also accepts a functor, that is called when an intersection
happens, so that I can store the index of the polygon somewhere.

--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/do-intersect-visitor-pattern-tp3914108p3914108.html
Sent from the cgal-discuss mailing list archive at Nabble.com.





Archive powered by MHonArc 2.6.16.

Top of Page