mirror of https://github.com/CGAL/cgal
rename the Qt Slot, it cannot have the same name as PMP function
otherwise it does not compile, with a cryptic error message
This commit is contained in:
parent
5ae03ccd22
commit
41d309b109
|
|
@ -45,7 +45,7 @@ public:
|
||||||
actionRandomPerturbation_->setProperty("subMenuName", "Polygon Mesh Processing");
|
actionRandomPerturbation_->setProperty("subMenuName", "Polygon Mesh Processing");
|
||||||
if (actionRandomPerturbation_) {
|
if (actionRandomPerturbation_) {
|
||||||
connect(actionRandomPerturbation_, SIGNAL(triggered()),
|
connect(actionRandomPerturbation_, SIGNAL(triggered()),
|
||||||
this, SLOT(random_perturbation()));
|
this, SLOT(random_perturb()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -65,7 +65,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
void random_perturbation()
|
void random_perturb()
|
||||||
{
|
{
|
||||||
const Scene_interface::Item_id index = scene->mainSelectionIndex();
|
const Scene_interface::Item_id index = scene->mainSelectionIndex();
|
||||||
Scene_polyhedron_item* poly_item =
|
Scene_polyhedron_item* poly_item =
|
||||||
|
|
@ -90,8 +90,9 @@ public Q_SLOTS:
|
||||||
time.start();
|
time.start();
|
||||||
|
|
||||||
std::cout << "Perturbation..." << std::endl;
|
std::cout << "Perturbation..." << std::endl;
|
||||||
CGAL::Polygon_mesh_processing::random_perturbation(
|
|
||||||
*poly_item->polyhedron(),
|
namespace PMP = CGAL::Polygon_mesh_processing;
|
||||||
|
PMP::random_perturbation(*poly_item->polyhedron(),
|
||||||
max_move);
|
max_move);
|
||||||
|
|
||||||
poly_item->invalidateOpenGLBuffers();
|
poly_item->invalidateOpenGLBuffers();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue