diff options
author | Hind-M <hind.montassif@gmail.com> | 2022-07-06 15:34:46 +0200 |
---|---|---|
committer | Hind-M <hind.montassif@gmail.com> | 2022-07-06 15:34:46 +0200 |
commit | 2559b78a16cc0f7af9ea3b78d6b388c629b2a4ae (patch) | |
tree | baac0dd84cf14da228db6d6c86672bf71a608d2f /src/Cech_complex | |
parent | 51f599d16a43e2c8e831284c6320b73324873c17 (diff) |
Move clog of radius after its assignment
Diffstat (limited to 'src/Cech_complex')
-rw-r--r-- | src/Cech_complex/include/gudhi/Cech_complex_blocker.h | 8 |
1 files changed, 4 insertions, 4 deletions
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; } } |