Skip to content

Commit

Permalink
Use for each loop over point indices contained by a node
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonCampolattaro committed Aug 4, 2020
1 parent 8113320 commit a3eb226
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -1083,8 +1083,9 @@ class Efficient_RANSAC {

if (cur) {
std::size_t enough = 0;
for (std::size_t i = cur->first; i <= cur->last; i++) {
std::size_t j = octree->index(i);
for (auto pointIndex : cur->points()) {

std::size_t j = *pointIndex;
if (shapeIndex[j] == -1) {
enough++;
if (enough >= requiredSamples)
Expand Down

0 comments on commit a3eb226

Please sign in to comment.