Skip to content

Commit

Permalink
Update esf.hpp (#1755)
Browse files Browse the repository at this point in the history
  • Loading branch information
lordofkey authored and jspricke committed May 30, 2017
1 parent 8efd713 commit 0812357
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion features/include/pcl/features/impl/esf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ pcl::ESFEstimation<PointInT, PointOutT>::computeESF (
Eigen::Vector4f v23 (p2 - p3);
a = v21.norm (); b = v31.norm (); c = v23.norm (); s = (a+b+c) * 0.5f;
if (s * (s-a) * (s-b) * (s-c) <= 0.001f)
continue;
{
nn_idx--;
continue;
}

v21.normalize ();
v31.normalize ();
Expand Down

0 comments on commit 0812357

Please sign in to comment.