Reduce the number of iterations in tests

This commit is contained in:
Mael Rouxel-Labbé 2020-03-31 09:30:35 +02:00
parent d813d7e1b3
commit 3e50e546f4
1 changed files with 4 additions and 2 deletions

View File

@ -51,8 +51,10 @@ void test_OBB_data(const PointRange& points,
// the algorithm is allowed to fail, but not too often // the algorithm is allowed to fail, but not too often
int failure_count = 0; int failure_count = 0;
for(int i=0; i<100; ++i) for(int i=0; i<10; ++i)
{ {
std::cout << "iter #" << i << std::endl;
CGAL::Surface_mesh<Point> obb_mesh; CGAL::Surface_mesh<Point> obb_mesh;
CGAL::oriented_bounding_box(points, obb_mesh, CGAL::parameters::use_convex_hull(with_convex_hull)); CGAL::oriented_bounding_box(points, obb_mesh, CGAL::parameters::use_convex_hull(with_convex_hull));
PMP::triangulate_faces(obb_mesh); PMP::triangulate_faces(obb_mesh);
@ -72,7 +74,7 @@ void test_OBB_data(const PointRange& points,
} }
std::cout << "failures: " << failure_count << std::endl; std::cout << "failures: " << failure_count << std::endl;
assert(failure_count < 5); // 5% failure assert(failure_count < 2); // 10% failure
} }
void test_OBB_of_mesh(const std::string fname, void test_OBB_of_mesh(const std::string fname,