Commit bdac0b5d authored by Ellen Dekkers's avatar Ellen Dekkers

OM/Apps/VDProgMeshes/Synthesizer: enable adaptive mode per default. more help. + - switched

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@292 fdac6126-5c0c-442c-9429-916003d36597
parent 4142d0e8
......@@ -545,8 +545,6 @@ open_vd_prog_mesh(const char* _filename)
}
void VDPMSynthesizerViewerWidget::keyPressEvent(QKeyEvent* _event)
{
switch (_event->key())
......@@ -559,14 +557,14 @@ void VDPMSynthesizerViewerWidget::keyPressEvent(QKeyEvent* _event)
updateGL();
break;
case Key_Plus:
case Key_Minus:
viewing_parameters_.increase_tolerance();
std::cout << "Scree-space error tolerance^2 is increased by "
<< viewing_parameters_.tolerance_square() << std::endl;
updateGL();
break;
case Key_Minus:
case Key_Plus:
viewing_parameters_.decrease_tolerance();
std::cout << "Screen-space error tolerance^2 is decreased by "
<< viewing_parameters_.tolerance_square() << std::endl;
......
......@@ -116,7 +116,7 @@ public:
VDPMSynthesizerViewerWidget(QWidget* _parent=0, const char* _name=0)
: MeshViewerWidget(_parent)
{
adaptive_mode_ = false;
adaptive_mode_ = true;
}
~VDPMSynthesizerViewerWidget()
......
......@@ -88,6 +88,7 @@ int main(int argc, char **argv)
<< " Plus : Refine mesh\n"
<< " Home : Coarsen down to base mesh\n"
<< " End : Refine up to finest mesh\n"
<< " a : Switch off / on adaptive refinement\n"
<< "\n";
return app.exec();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment