mirror of https://github.com/CGAL/cgal
add tooltip to c3t3 generated from image
This commit is contained in:
parent
77327b5461
commit
d41a8f4bb2
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
"<ul>"
|
||||
"<li>Angle: %1</li>"
|
||||
"<li>Edge size bound: %2</li>"
|
||||
"<li>Facets size bound: %3</li>"
|
||||
"<li>Approximation bound: %4</li>")
|
||||
.arg(facet_angle)
|
||||
.arg(edge_size)
|
||||
.arg(facet_sizing)
|
||||
.arg(facet_approx);
|
||||
if (!surface_only)
|
||||
tooltip += QString("<li>Tetrahedra size bound: %1</li>")
|
||||
.arg(tet_sizing);
|
||||
tooltip += QString("<li>Use Weighted Image: %1</li>")
|
||||
.arg(pWeights == nullptr ? "No" : "Yes");
|
||||
tooltip += "</ul></div>";
|
||||
|
||||
p_new_item->setProperty("toolTip", tooltip);
|
||||
|
||||
if(!is_gray)
|
||||
{
|
||||
namespace p = CGAL::parameters;
|
||||
|
|
|
|||
Loading…
Reference in New Issue