Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] using box_intersection_d for more than one query

Subject: CGAL users discussion list

List archive

[cgal-discuss] using box_intersection_d for more than one query


Chronological Thread 
  • From: Bruno Chareyre <>
  • To:
  • Subject: [cgal-discuss] using box_intersection_d for more than one query
  • Date: Tue, 13 Sep 2011 18:56:11 +0200

Hello,

I was wondering if there was a smart way to use box_intersection_d() in this sort of task:
Say, I want to find intersections between box B1 and a set {b1,... bN}, then depending on the result I will define a new box B2 to check again.

The trivial way would be:

box_intersection_d(B1,B1,b1,bN);
Box B2(some result of the callback mechanism)
box_intersection_d(B2,B2,b1,bN);

However, if I understand the algorithm correctly, this will trigger the sorting of {b1,... bN} twice. Correct?
Is there a way to avoid?

Thanks in advance.

Bruno





Archive powered by MHonArc 2.6.16.

Top of Page