#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/intersections.h>
#include <CGAL/point_generators_3.h>
#include <CGAL/Bbox_3.h>
#include <CGAL/box_intersection_d.h>
#include <CGAL/function_objects.h>
#include <CGAL/Join_input_iterator.h>
#include <CGAL/algorithm.h>
#include <vector>
typedef std::vector<Triangle_3> Triangles;
Triangles triangles;
void report_inters( const Box& a, const Box& b) {
std::cout << "Box " << (a.handle() - triangles.begin()) << " and "
<< (b.handle() - triangles.begin()) << " intersect";
if ( ! a.handle()->is_degenerate() && ! b.handle()->is_degenerate()
std::cout << ", and the triangles intersect also";
}
std::cout << '.' << std::endl;
}
int main() {
typedef CGAL::Random_points_in_cube_3<Point_3> Pts;
Pts points( 1);
Triangle_gen triangle_gen( points, points, points);
std::vector<Box> boxes;
for (
Iterator i = triangles.begin(); i != triangles.end(); ++i)
boxes.push_back( Box( i->bbox(), i));
return 0;
}