Skip to content

Commit

Permalink
Replace pcl_isfinite with std::isfinite
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorsten Harter committed Jan 24, 2019
1 parent 1afcb2f commit 521a279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion surface/include/pcl/surface/impl/mls.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ pcl::MLSResult::computeMLSSurface (const pcl::PointCloud<PointT> &cloud,

query_point = cloud.points[index].getVector3fMap ().template cast<double> ();

if (!pcl_isfinite (eigen_vector[0]) || !pcl_isfinite (eigen_vector[1]) || !pcl_isfinite (eigen_vector[2]))
if (!std::isfinite(eigen_vector[0]) || !std::isfinite(eigen_vector[1]) || !std::isfinite(eigen_vector[2]))
{
// Invalid plane coefficients, this may happen if the input cloud is non-dense (it contains invalid points)
// or if the points in the neighborhood are linearly dependent (e.g. on a line).
Expand Down

0 comments on commit 521a279

Please sign in to comment.