diff --git a/Polyhedron/demo/Polyhedron/Plugins/Surface_mesh/Offset_meshing_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Surface_mesh/Offset_meshing_plugin.cpp index 134dbe33417..b8072d8e4d4 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Surface_mesh/Offset_meshing_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Surface_mesh/Offset_meshing_plugin.cpp @@ -315,9 +315,9 @@ void Polyhedron_demo_offset_meshing_plugin::offset_meshing() .arg(offset_value)); new_item->setColor(Qt::magenta); new_item->setRenderingMode(item->renderingMode()); + scene->addItem(new_item); item->setVisible(false); scene->itemChanged(index); - scene->addItem(new_item); } QApplication::restoreOverrideCursor(); diff --git a/Polyhedron/demo/Polyhedron/Plugins/Surface_mesh/Remeshing_dialog.ui b/Polyhedron/demo/Polyhedron/Plugins/Surface_mesh/Remeshing_dialog.ui new file mode 100644 index 00000000000..3d5eaf74ba0 --- /dev/null +++ b/Polyhedron/demo/Polyhedron/Plugins/Surface_mesh/Remeshing_dialog.ui @@ -0,0 +1,175 @@ + + + Remeshing_dialog + + + + 0 + 0 + 344 + 168 + + + + Meshing criteria + + + + + + + + &Angle: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + angle + + + + + + + 1.000000000000000 + + + 30.000000000000000 + + + 25.000000000000000 + + + + + + + &Size: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + sizing + + + + + + + 4 + + + + + + + Approximation &error: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + approx + + + + + + + + + + + Non manifold + + + + + Manifold + + + + + Manifold with boundaries + + + + + + + + &Topological criterion: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + tags + + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + buttonBox + accepted() + Remeshing_dialog + accept() + + + 384 + 191 + + + 157 + 195 + + + + + buttonBox + rejected() + Remeshing_dialog + reject() + + + 384 + 191 + + + 286 + 195 + + + + +