ReverseEngineering: Use std::numeric_limits and std::numbers instead of defines

This commit is contained in:
Benjamin Nauck
2025-03-27 19:02:09 +01:00
parent 044997b1ac
commit 7efa4c1830
6 changed files with 18 additions and 18 deletions

View File

@@ -88,7 +88,7 @@ void RegionGrowing::perform(int ksearch)
reg.setInputCloud(cloud);
// reg.setIndices (indices);
reg.setInputNormals(normals);
reg.setSmoothnessThreshold(3.0 / 180.0 * M_PI);
reg.setSmoothnessThreshold(3.0 / 180.0 * std::numbers::pi);
reg.setCurvatureThreshold(1.0);
std::vector<pcl::PointIndices> clusters;
@@ -142,7 +142,7 @@ void RegionGrowing::perform(const std::vector<Base::Vector3f>& myNormals)
reg.setInputCloud(cloud);
// reg.setIndices (indices);
reg.setInputNormals(normals);
reg.setSmoothnessThreshold(3.0 / 180.0 * M_PI);
reg.setSmoothnessThreshold(3.0 / 180.0 * std::numbers::pi);
reg.setCurvatureThreshold(1.0);
std::vector<pcl::PointIndices> clusters;