Skip to content

Commit

Permalink
Merge pull request #1817 from taketwo/fix-crop-box
Browse files Browse the repository at this point in the history
Change code in CropBox to match variable name
  • Loading branch information
jspricke authored May 30, 2017
2 parents bd65fd6 + 16a735d commit 8efd713
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions filters/include/pcl/filters/impl/crop_box.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ pcl::CropBox<PointT>::applyFilter (std::vector<int> &indices)
}

bool transform_matrix_is_identity = transform_.matrix ().isIdentity ();
bool translation_is_zero = (translation_ != Eigen::Vector3f::Zero ());
bool translation_is_zero = (translation_ == Eigen::Vector3f::Zero ());
bool inverse_transform_matrix_is_identity = inverse_transform.matrix ().isIdentity ();

for (size_t index = 0; index < indices_->size (); ++index)
Expand All @@ -108,7 +108,7 @@ pcl::CropBox<PointT>::applyFilter (std::vector<int> &indices)
if (!transform_matrix_is_identity)
local_pt = pcl::transformPoint<PointT> (local_pt, transform_);

if (translation_is_zero)
if (!translation_is_zero)
{
local_pt.x -= translation_ (0);
local_pt.y -= translation_ (1);
Expand Down

0 comments on commit 8efd713

Please sign in to comment.