From 2c14df7dd5e638d53a42fbed17fb286fb5cd7b9f Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Tue, 15 Feb 2022 15:29:31 +0100 Subject: [PATCH 1/2] make kd tree mutable --- .../CGAL/Mesh_3/experimental/Lipschitz_sizing_experimental.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mesh_3/include/CGAL/Mesh_3/experimental/Lipschitz_sizing_experimental.h b/Mesh_3/include/CGAL/Mesh_3/experimental/Lipschitz_sizing_experimental.h index a2553333dc1..0973865378f 100644 --- a/Mesh_3/include/CGAL/Mesh_3/experimental/Lipschitz_sizing_experimental.h +++ b/Mesh_3/include/CGAL/Mesh_3/experimental/Lipschitz_sizing_experimental.h @@ -104,7 +104,7 @@ private: #ifdef CGAL_MESH_3_EXPERIMENTAL_USE_PATCHES_IDS //help to accelerate aabb_tree queries in m_ptree - std::shared_ptr m_kd_tree; + mutable std::shared_ptr m_kd_tree; Facet_patch_id_map m_facet_patch_id_map; const Patches_ids_map& patches_ids_map; @@ -387,7 +387,7 @@ private: } #ifdef CGAL_MESH_3_EXPERIMENTAL_USE_PATCHES_IDS - void kd_tree() + void kd_tree() const { typedef typename MeshDomain::Polyhedron Polyhedron; if(m_kd_tree.get() == 0) { From a2abc9b9e07a1c612aeaf2680e9c76282843c29e Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Tue, 15 Feb 2022 15:29:56 +0100 Subject: [PATCH 2/2] fix second template parameter --- Mesh_3/include/CGAL/Mesh_3/experimental/Get_facet_patch_id.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Mesh_3/include/CGAL/Mesh_3/experimental/Get_facet_patch_id.h b/Mesh_3/include/CGAL/Mesh_3/experimental/Get_facet_patch_id.h index 926cad5a1aa..a7acb042d45 100644 --- a/Mesh_3/include/CGAL/Mesh_3/experimental/Get_facet_patch_id.h +++ b/Mesh_3/include/CGAL/Mesh_3/experimental/Get_facet_patch_id.h @@ -22,7 +22,9 @@ namespace CGAL { namespace Mesh_3 { // backward compatibility with user code template -using Get_facet_patch_id_sm = Facet_patch_id_map; +using Get_facet_patch_id_sm + = Facet_patch_id_map; }} // end namespace CGAL::Mesh_3