Skip to content

Commit

Permalink
Use octree to find barycenter positions
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonCampolattaro committed Aug 4, 2020
1 parent 4b8af27 commit acda0b5
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -1079,12 +1079,12 @@ class Efficient_RANSAC {
typedef typename Octree::Node Cell;

bool upperZ, upperY, upperX;
const Cell *cur = octree->root();
const Cell *cur = &octree->root();

while (cur && cur->depth() < level) {
upperX = cur->barycenter().x() <= p.x();
upperY = cur->barycenter().y() <= p.y();
upperZ = cur->barycenter().z() <= p.z();
upperX = octree->barycenter(*cur).x() <= p.x();
upperY = octree->barycenter(*cur).y() <= p.y();
upperZ = octree->barycenter(*cur).z() <= p.z();

// TODO: Incompatible with Node children paradigm
if (upperZ) {
Expand Down

0 comments on commit acda0b5

Please sign in to comment.