From 2559b78a16cc0f7af9ea3b78d6b388c629b2a4ae Mon Sep 17 00:00:00 2001 From: Hind-M Date: Wed, 6 Jul 2022 15:34:46 +0200 Subject: Move clog of radius after its assignment --- src/Cech_complex/include/gudhi/Cech_complex_blocker.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Cech_complex/include/gudhi/Cech_complex_blocker.h') diff --git a/src/Cech_complex/include/gudhi/Cech_complex_blocker.h b/src/Cech_complex/include/gudhi/Cech_complex_blocker.h index fc92e8fa..22b99c5c 100644 --- a/src/Cech_complex/include/gudhi/Cech_complex_blocker.h +++ b/src/Cech_complex/include/gudhi/Cech_complex_blocker.h @@ -101,15 +101,15 @@ class Cech_blocker { // Check if the minimal enclosing ball of current face contains the extra point/opposite vertex Sphere const& sph = cc_ptr_->get_cache()[sph_key]; if (kernel_.squared_distance_d_object()(sph.first, cc_ptr_->get_point(face_opposite_vertex.second)) <= sph.second) { -#ifdef DEBUG_TRACES - std::clog << "center: " << sph.first << ", radius: " << radius << std::endl; -#endif // DEBUG_TRACES is_min_enclos_ball = true; + sc_ptr_->assign_key(sh, sph_key); #if CGAL_VERSION_NR >= 1050000000 if(exact_) CGAL::exact(sph.second); #endif radius = std::sqrt(cast_to_fv(sph.second)); - sc_ptr_->assign_key(sh, sph_key); +#ifdef DEBUG_TRACES + std::clog << "center: " << sph.first << ", radius: " << radius << std::endl; +#endif // DEBUG_TRACES break; } } -- cgit v1.2.3