Ron: Bugfix for not matched subcurve-index

This commit is contained in:
Eric Berberich 2007-10-23 10:06:12 +00:00
parent 22c50d5979
commit 6bdc4740f7
1 changed files with 10 additions and 2 deletions

View File

@ -845,7 +845,15 @@ void Arr_construction_sl_visitor<Hlpr>::relocate_in_new_face
for (itr = indices_list.begin(); itr != indices_list.end(); ++itr) for (itr = indices_list.begin(); itr != indices_list.end(); ++itr)
{ {
CGAL_assertion(*itr != 0 && *itr < m_sc_he_table.size()); CGAL_assertion(*itr != 0);
// In case the current subcurve index does not match a valid entry in
// m_sc_he_table, we know that this subcurve matches a halfedge that is
// not yet mapped. This can happen only if this halfedge is he itself.
// As we know that he lies on the outer CCB of the new face, it is
// definately not a hole in the face, therefore we can ignore it.
if (*itr >= m_sc_he_table.size())
continue;
Halfedge_handle he_on_face = m_sc_he_table[*itr]; Halfedge_handle he_on_face = m_sc_he_table[*itr];