Skip to content

Commit

Permalink
Merge pull request PointCloudLibrary#107 from jkammerl/boxsearch-fix
Browse files Browse the repository at this point in the history
fixing issue 97 - PointCloudLibrary#97
  • Loading branch information
jkammerl committed Jun 1, 2013
2 parents 811162f + feefcc4 commit e386f35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion octree/include/pcl/octree/impl/octree_pointcloud.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ pcl::octree::OctreePointCloud<PointT, LeafContainerT, BranchContainerT, OctreeT>

// do we violate any bounds?
if (bLowerBoundViolationX || bLowerBoundViolationY || bLowerBoundViolationZ || bUpperBoundViolationX
|| bUpperBoundViolationY || bUpperBoundViolationZ )
|| bUpperBoundViolationY || bUpperBoundViolationZ || (!bounding_box_defined_) )
{

if (bounding_box_defined_)
Expand Down
6 changes: 3 additions & 3 deletions octree/include/pcl/octree/impl/octree_search.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -571,9 +571,9 @@ pcl::octree::OctreePointCloudSearch<PointT, LeafContainerT, BranchContainerT>::b
const PointT& candidate_point = this->getPointByIndex (decoded_point_vector[i]);

// check if point falls within search box
bInBox = ( (candidate_point.x > min_pt (0)) && (candidate_point.x < max_pt (0)) &&
(candidate_point.y > min_pt (1)) && (candidate_point.y < max_pt (1)) &&
(candidate_point.z > min_pt (2)) && (candidate_point.z < max_pt (2)) );
bInBox = ( (candidate_point.x >= min_pt (0)) && (candidate_point.x <= max_pt (0)) &&
(candidate_point.y >= min_pt (1)) && (candidate_point.y <= max_pt (1)) &&
(candidate_point.z >= min_pt (2)) && (candidate_point.z <= max_pt (2)) );

if (bInBox)
// add to result vector
Expand Down

0 comments on commit e386f35

Please sign in to comment.