From 693d166835d015f5d2ab207995eb824c36def4b8 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Wed, 22 Mar 2023 15:58:55 +0100 Subject: [PATCH] more debug information --- .../Mesh_3/experimental/Sizing_field_with_aabb_tree.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Mesh_3/include/CGAL/Mesh_3/experimental/Sizing_field_with_aabb_tree.h b/Mesh_3/include/CGAL/Mesh_3/experimental/Sizing_field_with_aabb_tree.h index f7783370f19..11319fe065d 100644 --- a/Mesh_3/include/CGAL/Mesh_3/experimental/Sizing_field_with_aabb_tree.h +++ b/Mesh_3/include/CGAL/Mesh_3/experimental/Sizing_field_with_aabb_tree.h @@ -111,6 +111,9 @@ struct Sizing_field_with_aabb_tree // - First compute the number of patches and min/max patch ids Face_ids_traversal_traits traversal_traits; d_ptr->aabb_tree.traversal(nullptr, traversal_traits); +#ifdef CGAL_MESH_3_PROTECTION_HIGH_VERBOSITY + std::cerr << "min: " << traversal_traits.min << ", max: " << traversal_traits.max << '\n'; +#endif // CGAL_MESH_3_PROTECTION_HIGH_VERBOSITY d_ptr->min_patch_id = traversal_traits.min; d_ptr->kd_trees_ptrs.resize(traversal_traits.max - d_ptr->min_patch_id + 1); @@ -378,7 +381,12 @@ struct Sizing_field_with_aabb_tree const auto closest_point_and_primitive = closest_point_on_surfaces(p, ids); if(closest_point_and_primitive == boost::none) { #ifdef CGAL_MESH_3_PROTECTION_HIGH_VERBOSITY - std::cerr << result << " (projection not found)\n"; + std::cerr << result << " (projection not found) ids:"; + for(Patch_index i : ids) { + std::cerr << " " << CGAL::IO::oformat(i); + } + std::cerr << "\n"; + #endif // CGAL_MESH_3_PROTECTION_HIGH_VERBOSITY return result; }