Skip to content

Commit

Permalink
Add brackets to do-while loop for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonCampolattaro committed Aug 8, 2020
1 parent 50dc514 commit 6781a48
Showing 1 changed file with 8 additions and 4 deletions.
Expand Up @@ -550,7 +550,7 @@ class Efficient_RANSAC {

do { // main loop
best_expected = 0;
std::cerr << "~~~~" << std::endl;
std::cerr << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" << std::endl;

if (keep_searching) {
do {
Expand All @@ -559,11 +559,13 @@ class Efficient_RANSAC {
std::set<std::size_t> indices;
bool done = false;
do {
do

do {

first_sample = get_default_random()(
static_cast<unsigned int>(m_num_available_points));
while (m_shape_index[first_sample] != -1);

} while (m_shape_index[first_sample] != -1);
std::cerr << first_sample << std::endl;

done =
drawSamplesFromCellContainingPoint(m_global_octree,
Expand All @@ -574,6 +576,8 @@ class Efficient_RANSAC {
m_shape_index,
required_samples);

std::cerr << m_shape_index[first_sample] << std::endl;

if (callback && !callback(num_invalid / double(m_num_total_points)))
return false;

Expand Down

0 comments on commit 6781a48

Please sign in to comment.