add missing is_in_complex() check

This commit is contained in:
Jane Tournois 2022-11-17 16:34:41 +01:00
parent ab96b29f0c
commit 5fd1a8070c
1 changed files with 2 additions and 1 deletions

View File

@ -385,7 +385,8 @@ private:
const Subdomain_index index = cit->subdomain_index();
if(!input_is_c3t3())
m_c3t3.remove_from_complex(cit);
m_c3t3.add_to_complex(cit, index);
if(Subdomain_index() != index)
m_c3t3.add_to_complex(cit, index);
#ifdef CGAL_TETRAHEDRAL_REMESHING_DEBUG
++nbc;