limit to 1M pair tested in bench_thingi10K

This commit is contained in:
Léo Valque 2025-03-07 18:12:34 +01:00
parent f1ebfd1f08
commit 676495c5c1
1 changed files with 6 additions and 1 deletions

View File

@ -51,9 +51,10 @@ struct Test
typedef CGAL::Box_intersection_d::Box_with_handle_d<double,3,Iterator> CBox;
size_t nb_closed_pairs;
size_t nb_tested_pairs;
public:
Test() : nb_closed_pairs(0){ }
Test() : nb_closed_pairs(0), nb_tested_pairs(0){ }
void close_triangles(std::vector<P> &points, std::vector<boost::container::small_vector<std::size_t, 3> >& triangles, FT d2){
std::vector< CBox > boxes;
@ -74,6 +75,10 @@ public:
if(v.size()!=0) //they have common vertices
return;
nb_tested_pairs++;
if(nb_tested_pairs>1000000)
return;
T tr1(points[a[0]], points[a[1]], points[a[2]]);
T tr2(points[b[0]], points[b[1]], points[b[2]]);
bool comp = K().compare_squared_distance_3_object()(tr1, tr2, d2)!=CGAL::LARGER;