Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

[cgal-discuss] Re: do_intersect visitor pattern


Chronological Thread 
  • From: Graviton <>
  • To:
  • Subject: [cgal-discuss] Re: do_intersect visitor pattern
  • Date: Mon, 17 Oct 2011 23:15:28 -0700 (PDT)

Hello, I read your link, and look back at the do_intersection API, I don't think do_intersection actually takes in a functor, just like how box_self_intersection_d does. Or is it that one needs to use box_self_intersection_d in this case? But isn't box_self_intersection_d is supposed to be used for proximity computation, and used when there are complicated geometries? 

On Tue, Oct 18, 2011 at 1:13 PM, Sebastien Loriot (GeometryFactory) [via cgal-discuss] <[hidden email]> wrote:
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.
>


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




If you reply to this email, your message will be added to the discussion below:
http://cgal-discuss.949826.n4.nabble.com/do-intersect-visitor-pattern-tp3914108p3914272.html
To unsubscribe from do_intersect visitor pattern, click here.



View this message in context: Re: do_intersect visitor pattern
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.16.

Top of Page