From 41d309b1096f79a07cdbeb43f9c0bd60ab9c2972 Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Tue, 6 Jun 2017 10:36:02 +0200 Subject: [PATCH] rename the Qt Slot, it cannot have the same name as PMP function otherwise it does not compile, with a cryptic error message --- .../Plugins/PMP/Random_perturbation_plugin.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Polyhedron/demo/Polyhedron/Plugins/PMP/Random_perturbation_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/PMP/Random_perturbation_plugin.cpp index ea7e16a2ef4..266db3595b5 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PMP/Random_perturbation_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PMP/Random_perturbation_plugin.cpp @@ -45,7 +45,7 @@ public: actionRandomPerturbation_->setProperty("subMenuName", "Polygon Mesh Processing"); if (actionRandomPerturbation_) { connect(actionRandomPerturbation_, SIGNAL(triggered()), - this, SLOT(random_perturbation())); + this, SLOT(random_perturb())); } } @@ -65,7 +65,7 @@ public: } public Q_SLOTS: - void random_perturbation() + void random_perturb() { const Scene_interface::Item_id index = scene->mainSelectionIndex(); Scene_polyhedron_item* poly_item = @@ -90,9 +90,10 @@ public Q_SLOTS: time.start(); std::cout << "Perturbation..." << std::endl; - CGAL::Polygon_mesh_processing::random_perturbation( - *poly_item->polyhedron(), - max_move); + + namespace PMP = CGAL::Polygon_mesh_processing; + PMP::random_perturbation(*poly_item->polyhedron(), + max_move); poly_item->invalidateOpenGLBuffers(); Q_EMIT poly_item->itemChanged();