From d41a8f4bb297fef1cdc7c2514a97f2dfb44bdced Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Wed, 28 Jul 2021 16:23:23 +0200 Subject: [PATCH] add tooltip to c3t3 generated from image --- .../Plugins/Mesh_3/Mesh_3_plugin.cpp | 2 +- .../Mesh_3/Mesh_3_plugin_cgal_code.cpp | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Mesh_3_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Mesh_3_plugin.cpp index 5f5eafade94..36034a8ecdd 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Mesh_3_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Mesh_3_plugin.cpp @@ -713,7 +713,7 @@ void Mesh_3_plugin::mesh_3(const Mesh_type mesh_type, && sigma_weights != image_item->sigma_weights()) { image_item->set_image_weights( - std::move(CGAL::Mesh_3::generate_weights(*pImage, sigma_weights)), + CGAL::Mesh_3::generate_weights(*pImage, sigma_weights), sigma_weights); } #endif diff --git a/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Mesh_3_plugin_cgal_code.cpp b/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Mesh_3_plugin_cgal_code.cpp index c3371288e31..f51c46022ed 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Mesh_3_plugin_cgal_code.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Mesh_3_plugin_cgal_code.cpp @@ -224,6 +224,26 @@ Meshing_thread* cgal_code_mesh_3(const Image* pImage, param.image_3_ptr = pImage; param.weights_ptr = pWeights; Scene_c3t3_item* p_new_item = new Scene_c3t3_item(surface_only); + + QString tooltip = QString("\" With the following mesh parameters" + ""; + + p_new_item->setProperty("toolTip", tooltip); + if(!is_gray) { namespace p = CGAL::parameters;