Skip to content

Commit

Permalink
Found potential bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
translunar committed Jul 3, 2014
1 parent d7a4b9e commit a477b7a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion surface/include/pcl/surface/impl/mls.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,14 @@ pcl::MovingLeastSquares<PointInT, PointOutT>::performProcessing (PointCloudOut &

// Copy all information from the input cloud to the output points (not doing any interpolation)
for (size_t pp = 0; pp < projected_points.size (); ++pp)
{
if (projected_points[pp].x != projected_points[pp].x)
{
PCL_ERROR ("NaN encountered");
throw;
}
copyMissingFields (input_->points[(*indices_)[cp]], projected_points[pp]);

}

// Append projected points to output
output.insert (output.end (), projected_points.begin (), projected_points.end ());
Expand Down

0 comments on commit a477b7a

Please sign in to comment.