@@ -16,9 +16,7 @@ namespace inclusion_ccd
1616{
1717 Scalar time20 = 0 , time21 = 0 , time22 = 0 , time23 = 0 , time24 = 0 ,
1818 time25 = 0 , time_rational = 0 ;
19- int refine = 0 ;
20- int refine_return = 0 ;
21- long queue_size = 0 ;
19+
2220 // convert Numccd to double number
2321 Scalar Numccd2double (const Numccd &n)
2422 {
@@ -1493,7 +1491,7 @@ namespace inclusion_ccd
14931491 err_and_ms[0 ] = err[0 ] + ms;
14941492 err_and_ms[1 ] = err[1 ] + ms;
14951493 err_and_ms[2 ] = err[2 ] + ms;
1496- refine = 0 ;
1494+ int refine = 0 ;
14971495 toi = std::numeric_limits<Scalar>::infinity ();
14981496 Numccd TOI;
14991497 TOI.first = 1 ;
@@ -1781,7 +1779,7 @@ namespace inclusion_ccd
17811779 const int max_itr,
17821780 Scalar &output_tolerance)
17831781 {
1784- queue_size = 0 ;
1782+ long queue_size = 0 ;
17851783 // if max_itr <0, output_tolerance= co_domain_tolerance;
17861784 // else, output_tolearancewill be the precision after iteration time > max_itr
17871785 output_tolerance = co_domain_tolerance;
@@ -1824,7 +1822,7 @@ namespace inclusion_ccd
18241822
18251823 // current intervals
18261824 Interval3 current;
1827- refine = 0 ;
1825+ int refine = 0 ;
18281826 Scalar impact_ratio;
18291827
18301828 impact_ratio = 1 ;
@@ -1989,7 +1987,7 @@ namespace inclusion_ccd
19891987 {
19901988 toi = temp_toi;
19911989 output_tolerance = temp_output_tolerance;
1992- refine_return++;
1990+
19931991 // std::cout<<"return from refine"<<std::endl;
19941992 return true ;
19951993 }
@@ -2183,7 +2181,6 @@ namespace inclusion_ccd
21832181
21842182 return false ;
21852183 }
2186- long return_queue_size () { return queue_size; }
21872184 bool interval_root_finder_double_horizontal_tree (
21882185 const VectorMax3d &tol,
21892186 const Scalar co_domain_tolerance,
@@ -2363,8 +2360,7 @@ namespace inclusion_ccd
23632360#endif
23642361 void print_time_2 ()
23652362 {
2366- std::cout << " how many times return from max_itr, " << refine_return
2367- << std::endl;
2363+
23682364 std::cout << " origin predicates, " << time20 << std::endl;
23692365 std::cout << " width, " << time21 << std::endl;
23702366 std::cout << " bisect, " << time22 << std::endl;
@@ -2373,8 +2369,6 @@ namespace inclusion_ccd
23732369 std::cout << " origin part2(convert tuv), " << time24 << std::endl;
23742370 std::cout << " time of call the vertex solving function, " << time25
23752371 << std::endl;
2376- std::cout << " how many times of interval check for this query, "
2377- << refine << std::endl;
23782372 }
23792373 Scalar print_time_rational () { return time_rational; }
23802374
0 commit comments