Rephrase end condition

This commit is contained in:
Mael Rouxel-Labbé 2019-08-21 17:07:44 +02:00
parent 9bd79323f6
commit 4bca5d114f
1 changed files with 1 additions and 1 deletions

View File

@ -704,7 +704,7 @@ std::size_t stitch_boundary_cycle(const typename boost::graph_traits<PolygonMesh
#endif
// check if we have reached the end of the cycle
if(curr_h == curr_hn || curr_h == next(curr_hn, pm))
if(prev(curr_h, pm) == curr_hn || prev(curr_h, pm) == next(curr_hn, pm))
{
bh = null_h;
break;