Revert "fix init_c3t3 for internal C3t3"

This reverts commit a90488fce5.
This commit is contained in:
Jane Tournois 2022-12-21 14:42:39 +00:00
parent 7959549cff
commit 73063a618b
1 changed files with 12 additions and 5 deletions

View File

@ -417,8 +417,11 @@ private:
if (!input_is_c3t3()) if (!input_is_c3t3())
{ {
for (int i = 0; i < 4; ++i) for (int i = 0; i < 4; ++i)
{
if (cit->vertex(i)->in_dimension() == -1)
cit->vertex(i)->set_dimension(3); cit->vertex(i)->set_dimension(3);
} }
}
#ifdef CGAL_TETRAHEDRAL_REMESHING_DEBUG #ifdef CGAL_TETRAHEDRAL_REMESHING_DEBUG
else if (input_is_c3t3() && m_c3t3.is_in_complex(cit)) else if (input_is_c3t3() && m_c3t3.is_in_complex(cit))
++nbc; ++nbc;
@ -446,6 +449,7 @@ private:
for (int j = 0; j < 3; ++j) for (int j = 0; j < 3; ++j)
{ {
Vertex_handle vij = f.first->vertex(Tr::vertex_triple_index(i, j)); Vertex_handle vij = f.first->vertex(Tr::vertex_triple_index(i, j));
if (vij->in_dimension() == -1 || vij->in_dimension() > 2)
vij->set_dimension(2); vij->set_dimension(2);
} }
#ifdef CGAL_TETRAHEDRAL_REMESHING_DEBUG #ifdef CGAL_TETRAHEDRAL_REMESHING_DEBUG
@ -478,9 +482,11 @@ private:
m_c3t3.add_to_complex(e, 1); m_c3t3.add_to_complex(e, 1);
Vertex_handle v = e.first->vertex(e.second); Vertex_handle v = e.first->vertex(e.second);
if (v->in_dimension() == -1 || v->in_dimension() > 1)
v->set_dimension(1); v->set_dimension(1);
v = e.first->vertex(e.third); v = e.first->vertex(e.third);
if (v->in_dimension() == -1 || v->in_dimension() > 1)
v->set_dimension(1); v->set_dimension(1);
#ifdef CGAL_TETRAHEDRAL_REMESHING_DEBUG #ifdef CGAL_TETRAHEDRAL_REMESHING_DEBUG
@ -502,6 +508,7 @@ private:
if(!m_c3t3.is_in_complex(vit)) if(!m_c3t3.is_in_complex(vit))
m_c3t3.add_to_complex(vit, ++corner_id); m_c3t3.add_to_complex(vit, ++corner_id);
if (vit->in_dimension() == -1 || vit->in_dimension() > 0)
vit->set_dimension(0); vit->set_dimension(0);
vit->set_index(corner_id); vit->set_index(corner_id);