Minor debug readability improvements

This commit is contained in:
Mael Rouxel-Labbé 2023-06-26 17:10:58 +02:00
parent fbecb18f49
commit 308ee5c967
1 changed files with 6 additions and 4 deletions

View File

@ -578,7 +578,7 @@ insert_corners()
Index p_index = domain_.index_from_corner_index(cit->first); Index p_index = domain_.index_from_corner_index(cit->first);
#if CGAL_MESH_3_PROTECTION_DEBUG & 1 #if CGAL_MESH_3_PROTECTION_DEBUG & 1
std::cerr << "** treat corner #" << CGAL::IO::oformat(p_index) << std::endl; std::cerr << "\n** treat corner #" << CGAL::IO::oformat(p_index) << std::endl;
#endif #endif
// Get weight (the ball radius is given by the 'query_size' function) // Get weight (the ball radius is given by the 'query_size' function)
@ -833,7 +833,7 @@ smart_insert_point(const Bare_point& p, Weight w, int dim, const Index& index,
#if CGAL_MESH_3_PROTECTION_DEBUG & 1 #if CGAL_MESH_3_PROTECTION_DEBUG & 1
std::cerr << "smart_insert_point: weight " << w std::cerr << "smart_insert_point: weight " << w
<< " reduced to " << min_sq_d << " reduced to " << min_sq_d
<< "\n (near existing point: " << nearest_point << " )\n"; << " (near existing point: " << nearest_point << " )\n";
#endif #endif
w = min_sq_d; w = min_sq_d;
add_handle_to_unchecked = true; add_handle_to_unchecked = true;
@ -873,11 +873,13 @@ smart_insert_point(const Bare_point& p, Weight w, int dim, const Index& index,
special_ball = true; special_ball = true;
insert_a_special_ball = true; insert_a_special_ball = true;
} }
if( ! is_special(it) ) { if( ! is_special(it) ) {
*out++ = it; *out++ = it;
change_ball_size(it, sq_d, special_ball); change_ball_size(it, sq_d, special_ball);
restart = true; restart = true;
} }
break; break;
} }
} }
@ -903,7 +905,7 @@ smart_insert_point(const Bare_point& p, Weight w, int dim, const Index& index,
#if CGAL_MESH_3_PROTECTION_DEBUG & 1 #if CGAL_MESH_3_PROTECTION_DEBUG & 1
std::cerr << "smart_insert_point: weight " << w std::cerr << "smart_insert_point: weight " << w
<< " reduced to " << min_sq_d << " reduced to " << min_sq_d
<< "\n (near existing point: " << nearest_point << " )\n"; << " (near existing point: " << nearest_point << " )\n";
#endif #endif
w = min_sq_d; w = min_sq_d;
add_handle_to_unchecked = true; add_handle_to_unchecked = true;
@ -957,7 +959,7 @@ insert_balls_on_edges()
if ( ! is_treated(curve_index) ) if ( ! is_treated(curve_index) )
{ {
#if CGAL_MESH_3_PROTECTION_DEBUG & 1 #if CGAL_MESH_3_PROTECTION_DEBUG & 1
std::cerr << "** treat curve #" << curve_index << std::endl; std::cerr << "\n** treat curve #" << curve_index << std::endl;
#endif #endif
const Bare_point& p = std::get<1>(*fit).first; const Bare_point& p = std::get<1>(*fit).first;
const Bare_point& q = std::get<2>(*fit).first; const Bare_point& q = std::get<2>(*fit).first;