Skip to content

Commit

Permalink
avoid potentially infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
sloriot committed Jun 10, 2024
1 parent 2c13f1f commit 174a1d6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,11 @@ struct Non_manifold_output_visitor

if (vid_not_used.any()){
std::vector<ID> free_vids;
for (ID i = vid_not_used.find_first();
for (auto i = vid_not_used.find_first();
i < vid_not_used.npos;
i = vid_not_used.find_next(i))
{
free_vids.push_back(i);
free_vids.push_back(static_cast<ID>(i));
}
// now reindex the vertices
for (auto& p : vid1)
Expand Down

0 comments on commit 174a1d6

Please sign in to comment.