Merge pull request #1962 from sloriot/AOS_2-fix_precond_trap_decomp

Fix precondition in Trapezoidal_decomposition_2
This commit is contained in:
Sebastien Loriot 2017-03-14 16:30:29 +01:00 committed by GitHub
commit e3b6f20ac8
1 changed files with 1 additions and 3 deletions

View File

@ -1537,9 +1537,7 @@ bool Trapezoidal_decomposition_2<Td_traits>
typename Arrangement_on_surface_2::Halfedge_around_vertex_const_circulator first, second;
first = second = v->incident_halfedges();
++second;
if (he->source() == v)
he = he->twin();
CGAL_assertion(he == first);
if (second == first) //if he is the only halfedge around v -> return true
return true;
return false;