Max area k-gon is implemented for k=3; Additionally the input must be convex

This commit is contained in:
Andreas Fabri 2011-10-12 11:08:33 +00:00
parent 1211b00e3b
commit 7566f2cdcc
2 changed files with 3 additions and 1 deletions

View File

@ -415,6 +415,8 @@ MainWindow::on_actionMaximumAreaKGon_triggered()
kgongi->modelChanged();
kgongi->show();
} else {
std::cout << "The polygon must be convex" << std::endl;
}
}

View File

@ -231,7 +231,7 @@
</action>
<action name="actionMaximumAreaKGon">
<property name="text">
<string>Maximum Area K-gon</string>
<string>Maximum Area Triangle</string>
</property>
</action>
</widget>