Ported PCL 1.11 deprecated changes to PCL 1.10 (#550)

This commit is contained in:
matlabbe
2020-05-27 17:45:16 -04:00
parent 8842d0c0e3
commit bf39c5295b
4 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -1007,7 +1007,7 @@ pcl::TextureMesh::Ptr concatenateTextureMeshes(const std::list<pcl::TextureMesh:
// append point cloud
int polygonStep = output->cloud.height * output->cloud.width;
pcl::PCLPointCloud2 tmp;
#if PCL_VERSION_COMPARE(>=, 1, 11, 0)
#if PCL_VERSION_COMPARE(>=, 1, 10, 0)
pcl::concatenate(output->cloud, iter->get()->cloud, tmp);
#else
pcl::concatenatePointCloud(output->cloud, iter->get()->cloud, tmp);
@@ -3206,14 +3206,14 @@ pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr mls(
mls.setComputeNormals (true);
if(polygonialOrder > 0)
{
#if PCL_VERSION_COMPARE(<, 1, 11, 0)
#if PCL_VERSION_COMPARE(<, 1, 10, 0)
mls.setPolynomialFit (true);
#endif
mls.setPolynomialOrder(polygonialOrder);
}
else
{
#if PCL_VERSION_COMPARE(<, 1, 11, 0)
#if PCL_VERSION_COMPARE(<, 1, 10, 0)
mls.setPolynomialFit (false);
#else
mls.setPolynomialOrder(1);