mirror of https://github.com/CGAL/cgal
add an assertion in make_canonical
it also helps to make the code more explicit
This commit is contained in:
parent
7cd18cd659
commit
f55ffabbe0
|
|
@ -4229,19 +4229,21 @@ make_canonical(Vertex_triple& t) const
|
||||||
Vertex_handle tmp;
|
Vertex_handle tmp;
|
||||||
switch(i)
|
switch(i)
|
||||||
{
|
{
|
||||||
case 0: return;
|
case 0: break;
|
||||||
case 1:
|
case 1:
|
||||||
tmp = t.first;
|
tmp = t.first;
|
||||||
t.first = t.second;
|
t.first = t.second;
|
||||||
t.second = t.third;
|
t.second = t.third;
|
||||||
t.third = tmp;
|
t.third = tmp;
|
||||||
return;
|
break;
|
||||||
default:
|
default:
|
||||||
tmp = t.first;
|
tmp = t.first;
|
||||||
t.first = t.third;
|
t.first = t.third;
|
||||||
t.third = t.second;
|
t.third = t.second;
|
||||||
t.second = tmp;
|
t.second = tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CGAL_assertion(t.first < t.second && t.first < t.third);
|
||||||
}
|
}
|
||||||
|
|
||||||
template < class GT, class Tds, class Lds >
|
template < class GT, class Tds, class Lds >
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue