Skip to content

Commit

Permalink
ReverseEngineering: [skip ci] do not explicitly use boost::shared_ptr…
Browse files Browse the repository at this point in the history
… because pcl11 now uses std::shared_ptr
  • Loading branch information
wwmayer committed Jul 30, 2020
1 parent a1f4187 commit 6903b4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/ReverseEngineering/App/RegionGrowing.cpp
Expand Up @@ -61,7 +61,7 @@ void RegionGrowing::perform(int ksearch)
}

//normal estimation
pcl::search::Search<pcl::PointXYZ>::Ptr tree = boost::shared_ptr<pcl::search::Search<pcl::PointXYZ> > (new pcl::search::KdTree<pcl::PointXYZ>);
pcl::search::Search<pcl::PointXYZ>::Ptr tree(new pcl::search::KdTree<pcl::PointXYZ>);
pcl::PointCloud <pcl::Normal>::Ptr normals (new pcl::PointCloud <pcl::Normal>);
pcl::NormalEstimation<pcl::PointXYZ, pcl::Normal> normal_estimator;
normal_estimator.setSearchMethod (tree);
Expand Down Expand Up @@ -118,7 +118,7 @@ void RegionGrowing::perform(const std::vector<Base::Vector3f>& myNormals)
}
}

pcl::search::Search<pcl::PointXYZ>::Ptr tree = boost::shared_ptr<pcl::search::Search<pcl::PointXYZ> > (new pcl::search::KdTree<pcl::PointXYZ>);
pcl::search::Search<pcl::PointXYZ>::Ptr tree(new pcl::search::KdTree<pcl::PointXYZ>);
tree->setInputCloud (cloud);

// pass through
Expand Down

0 comments on commit 6903b4f

Please sign in to comment.