Merge pull request #2776 from sgiraudot/Shape_detection-Fix_infinite_loop-GF

Shape Detection: Fix Infinite Loop

# Conflicts:
#	Point_set_shape_detection_3/include/CGAL/Shape_detection_3/Efficient_RANSAC.h
This commit is contained in:
Laurent Rineau 2018-02-02 16:07:22 +01:00
commit fcc85861f6
1 changed files with 2 additions and 0 deletions

View File

@ -794,6 +794,8 @@ shape. The implementation follows \cgalCite{schnabel2007efficient}.
candidates.resize(end);
}
else if (!keep_searching)
++ generated_candidates;
if (callback && !callback(num_invalid / double(m_num_total_points)))
return false;