From b64a868ff0e05e44dfa6770422b73186990a5655 Mon Sep 17 00:00:00 2001 From: Sven Oesau Date: Fri, 15 Nov 2024 18:40:03 +0100 Subject: [PATCH] removing redundant initialization reformatting output --- .../ksr_parameters.cpp | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/Kinetic_surface_reconstruction/examples/Kinetic_surface_reconstruction/ksr_parameters.cpp b/Kinetic_surface_reconstruction/examples/Kinetic_surface_reconstruction/ksr_parameters.cpp index d411451b0d5..8575827b5a6 100644 --- a/Kinetic_surface_reconstruction/examples/Kinetic_surface_reconstruction/ksr_parameters.cpp +++ b/Kinetic_surface_reconstruction/examples/Kinetic_surface_reconstruction/ksr_parameters.cpp @@ -171,15 +171,10 @@ int main(const int argc, const char** argv) { timer.start(); std::size_t num_shapes = ksr.detect_planar_shapes(param); - std::cout << num_shapes << " detected planar shapes" << std::endl; FT after_shape_detection = timer.time(); - ksr.initialize_partition(param); - - FT after_init = timer.time(); - ksr.partition(parameters.k_intersections); FT after_partition = timer.time(); @@ -222,19 +217,16 @@ int main(const int argc, const char** argv) { else ksr.reconstruct(l, external_nodes, std::back_inserter(vtx), std::back_inserter(polylist)); - if (polylist.size() > 0) { non_empty = true; CGAL::IO::write_polygon_soup("polylist_" + std::to_string(l) + (parameters.use_ground ? "_g" : "_") + ".off", vtx, polylist); } } - std::cout << "Shape detection: " << after_shape_detection << " seconds!" << std::endl; - std::cout << "Kinetic partition: " << (after_partition - after_shape_detection) << " seconds!" << std::endl; - std::cout << " initialization: " << (after_init - after_shape_detection) << " seconds!" << std::endl; - std::cout << " partition: " << (after_partition - after_init) << " seconds!" << std::endl; - std::cout << "Kinetic reconstruction: " << (after_reconstruction - after_partition) << " seconds!" << std::endl; - std::cout << "Total time: " << time << " seconds!" << std::endl << std::endl; + std::cout << "Shape detection and initialization\nof kinetic partition: " << after_shape_detection << " seconds!" << std::endl; + std::cout << "Kinetic partition: " << (after_partition - after_shape_detection) << " seconds!" << std::endl; + std::cout << "Kinetic reconstruction: " << (after_reconstruction - after_partition) << " seconds!" << std::endl; + std::cout << "Total time: " << time << " seconds!" << std::endl << std::endl; return (non_empty) ? EXIT_SUCCESS : EXIT_FAILURE; }