add comment and compact the put in the output iterator

This commit is contained in:
Sébastien Loriot 2014-02-03 19:38:54 +01:00
parent e09a984da5
commit 241a69a58e
1 changed files with 3 additions and 1 deletions

View File

@ -28,7 +28,9 @@ ch_graham_anderson( InputIterator first, InputIterator beyond,
{
result = CGAL::ch_graham_andrew_scan( V.begin(), V.end(), result, ch_traits);
}
*result = *(V.rbegin()); ++result;
// add the last point of the sequence that is
// not added by ch_graham_andrew_scan
*result++ = *(V.rbegin());
return result;
}