diff --git a/CMakeLists.txt b/CMakeLists.txt index 3eb1047..c9bb13b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,7 +19,7 @@ ENDIF(OBJREC_USE_CUDA) find_package(Boost COMPONENTS thread system REQUIRED) include_directories(${Boost_INCLUDE_DIRS}) -find_package(PCL REQUIRED) +find_package(PCL 1.7 REQUIRED) find_package(OpenMP REQUIRED) find_package(VTK) diff --git a/src/BasicTools/ComputationalGeometry/Algorithms/RANSACPlaneDetector.h b/src/BasicTools/ComputationalGeometry/Algorithms/RANSACPlaneDetector.h index e10f270..a810b4c 100644 --- a/src/BasicTools/ComputationalGeometry/Algorithms/RANSACPlaneDetector.h +++ b/src/BasicTools/ComputationalGeometry/Algorithms/RANSACPlaneDetector.h @@ -82,7 +82,7 @@ inline int RANSACPlaneDetector::computeNumberOfIterations(int numberOfPoints, in inline void RANSACPlaneDetector::randomlyGet3Points(vtkPoints* points, double p1[3], double p2[3], double p3[3]) { // Some variables - int id1, id2, id3, range[2] = {0, points->GetNumberOfPoints()-1}; + int id1, id2, id3, range[2] = {0, (int)points->GetNumberOfPoints()-1}; // Get first id id1 = mRandGen.getRandomInteger(range);