Skip to content

Commit

Permalink
Replace call to Index with dereferencing iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonCampolattaro committed Aug 4, 2020
1 parent a16a9cd commit 320968a
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -1094,7 +1094,8 @@ class Efficient_RANSAC {
do {
std::size_t p = CGAL::get_default_random().
uniform_int<std::size_t>(0, cur->size() - 1);
std::size_t j = octree->index(cur->first + p);
// TODO: I'm not sure if dereferencing this is working correctly
std::size_t j = *(cur->points().begin() + p);
if (shapeIndex[j] == -1)
indices.insert(j);
} while (indices.size() < requiredSamples);
Expand Down

0 comments on commit 320968a

Please sign in to comment.