Merge pull request #6321 from janetournois/Mesh_3_experimental-minor_fixes-jtournois

Mesh 3 experimental - minor fixes
This commit is contained in:
Laurent Rineau 2022-02-22 18:24:45 +01:00
commit 1af882bd4c
2 changed files with 5 additions and 3 deletions

View File

@ -22,7 +22,9 @@ namespace CGAL { namespace Mesh_3 {
// backward compatibility with user code
template <typename MeshDomain>
using Get_facet_patch_id_sm = Facet_patch_id_map<MeshDomain, typename MeshDomain::AABB_tree>;
using Get_facet_patch_id_sm
= Facet_patch_id_map<MeshDomain,
typename MeshDomain::AABB_tree::Primitive>;
}} // end namespace CGAL::Mesh_3

View File

@ -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<Kd_tree> m_kd_tree;
mutable std::shared_ptr<Kd_tree> 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) {