summaryrefslogtreecommitdiff
path: root/src/GudhUI/gui/MainWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/GudhUI/gui/MainWindow.cpp')
-rw-r--r--src/GudhUI/gui/MainWindow.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/GudhUI/gui/MainWindow.cpp b/src/GudhUI/gui/MainWindow.cpp
index f5abfffc..e41b15ba 100644
--- a/src/GudhUI/gui/MainWindow.cpp
+++ b/src/GudhUI/gui/MainWindow.cpp
@@ -98,6 +98,9 @@ MainWindow::connectActions(){
SLOT(persistence_menu()));
QObject::connect(this->actionEstimate_topological_changes, SIGNAL(triggered()), this,
SLOT(critical_points_menu()));
+ QObject::connect(this->actionIs_manifold, SIGNAL(triggered()), this,
+ SLOT(is_manifold_menu()));
+
QObject::connect(this, SIGNAL(sceneChanged()), this->viewer_instructor_,
SLOT(sceneChanged()));
@@ -223,8 +226,7 @@ MainWindow::contract_edges(unsigned num_collapses){
void
MainWindow::collapse_edges(){
- std::cerr <<"Collapse "<<100<< " edges\n";
- model_.collapse_edges(100);
+ model_.collapse_edges(model_.num_edges());
update_view();
}
@@ -287,5 +289,10 @@ MainWindow::critical_points_menu(){
model_.show_critical_points(max_length);
}
+void
+MainWindow::is_manifold_menu(){
+ model_.show_is_manifold();
+}
+
#include "MainWindow.moc"