mirror of https://github.com/CGAL/cgal
Adress warning in progress.cpp
This commit is contained in:
parent
6260d5a4e4
commit
e24150d9bd
|
|
@ -57,7 +57,7 @@ struct Callback {
|
|||
|
||||
void operator()( const Box& a, const Box& b ) {
|
||||
++(sptr->count);
|
||||
// std::cout << "box " << a.id() << " intersects box " << b.id() << std::endl;
|
||||
std::cout << "box " << a.id() << " intersects box " << b.id() << std::endl;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -81,7 +81,7 @@ struct Callback {
|
|||
|
||||
int main(int argc, char* argv[]) {
|
||||
|
||||
int n = (argc>1)?std::atoi(argv[1]): 100;
|
||||
int n = (argc>1)?std::atoi(argv[1]): 5;
|
||||
int blx = (argc>2)?std::atoi(argv[2]): 1;
|
||||
int bly = (argc>2)?std::atoi(argv[3]): 1;
|
||||
|
||||
|
|
@ -89,8 +89,6 @@ int main(int argc, char* argv[]) {
|
|||
fill(boxes, 0, 0, n);
|
||||
fill(queries, blx, bly, n);
|
||||
|
||||
std::ptrdiff_t cutoff = 1;
|
||||
|
||||
Callback callback(2.); // because we call segment_tree twice
|
||||
|
||||
CGAL::box_intersection_d( boxes.begin(), boxes.end(), queries.begin(), queries.end(), callback);
|
||||
|
|
|
|||
Loading…
Reference in New Issue