diff --git a/GraspPlanning/ConvexHullGenerator.cpp b/GraspPlanning/ConvexHullGenerator.cpp index a5e3f9464057adb52bd3751f37a0bf53d84fbfec..6d0cb7f57a11cc4ee7ef0333f53ab809e59fe8e3 100644 --- a/GraspPlanning/ConvexHullGenerator.cpp +++ b/GraspPlanning/ConvexHullGenerator.cpp @@ -19,7 +19,7 @@ using namespace VirtualRobot::MathTools; namespace GraspStudio { - bool ConvexHullGenerator::ConvertPoints(std::vector<Eigen::Vector3f>& points, double* storePointsQHull) + bool ConvexHullGenerator::ConvertPoints(const std::vector<Eigen::Vector3f>& points, double* storePointsQHull) { for (int i = 0; i < (int)points.size(); i++) { @@ -30,7 +30,7 @@ namespace GraspStudio return true; } - bool ConvexHullGenerator::ConvertPoints(std::vector<ContactPoint>& points, double* storePointsQHull) + bool ConvexHullGenerator::ConvertPoints(const std::vector<ContactPoint>& points, double* storePointsQHull) { for (int i = 0; i < (int)points.size(); i++) { diff --git a/GraspPlanning/ConvexHullGenerator.h b/GraspPlanning/ConvexHullGenerator.h index 17a8f2b6ab169841f66d33744c807606d2b1a5dd..fab1cf59466db40d7c4a308289d48445fe1c3d82 100644 --- a/GraspPlanning/ConvexHullGenerator.h +++ b/GraspPlanning/ConvexHullGenerator.h @@ -42,7 +42,7 @@ namespace GraspStudio /*! Creates a convex hull of the points stored in pointsInput. */ - static VirtualRobot::MathTools::ConvexHull3DPtr CreateConvexHull(std::vector<Eigen::Vector3f>& pointsInput); + static VirtualRobot::MathTools::ConvexHull3DPtr CreateConvexHull(const std::vector<Eigen::Vector3f>& pointsInput); static VirtualRobot::MathTools::ConvexHull3DPtr CreateConvexHull(VirtualRobot::TriMeshModelPtr pointsInput); static VirtualRobot::MathTools::ConvexHull6DPtr CreateConvexHull(std::vector<VirtualRobot::MathTools::ContactPoint>& pointsInput); @@ -51,8 +51,8 @@ namespace GraspStudio /*! Convert points to qhull format */ - static bool ConvertPoints(std::vector<Eigen::Vector3f>& points, double* storePointsQHull); - static bool ConvertPoints(std::vector<VirtualRobot::MathTools::ContactPoint>& points, double* storePointsQHull); + static bool ConvertPoints(const std::vector<Eigen::Vector3f>& points, double* storePointsQHull); + static bool ConvertPoints(const std::vector<VirtualRobot::MathTools::ContactPoint>& points, double* storePointsQHull); static void PrintVertices(std::vector<VirtualRobot::MathTools::ContactPoint>& pointsInput); diff --git a/GraspPlanning/ConvexHullGeneratorQhull.cpp b/GraspPlanning/ConvexHullGeneratorQhull.cpp index b8a7354e81e5cb16ee87e2f2954b1fa4a2c8e2cf..1d529943bb0fea1da9d0646d1cf98b2fd0ed9c2b 100644 --- a/GraspPlanning/ConvexHullGeneratorQhull.cpp +++ b/GraspPlanning/ConvexHullGeneratorQhull.cpp @@ -38294,7 +38294,7 @@ using namespace VirtualRobot::MathTools; namespace GraspStudio { -VirtualRobot::MathTools::ConvexHull3DPtr ConvexHullGenerator::CreateConvexHull(std::vector<Eigen::Vector3f>& pointsInput) +VirtualRobot::MathTools::ConvexHull3DPtr ConvexHullGenerator::CreateConvexHull(const std::vector<Eigen::Vector3f> &pointsInput) { //clock_t startT = clock();