Skip to content
Snippets Groups Projects
Commit 274500bd authored by Raphael Grimm's avatar Raphael Grimm
Browse files

Make ConvexHullGenerator const correct

parent cc9d7225
No related branches found
No related tags found
No related merge requests found
......@@ -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++)
{
......
......@@ -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);
......
......@@ -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();
 
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment