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) ...@@ -545,8 +545,6 @@ open_vd_prog_mesh(const char* _filename)
} }
void VDPMSynthesizerViewerWidget::keyPressEvent(QKeyEvent* _event) void VDPMSynthesizerViewerWidget::keyPressEvent(QKeyEvent* _event)
{ {
switch (_event->key()) switch (_event->key())
...@@ -559,14 +557,14 @@ void VDPMSynthesizerViewerWidget::keyPressEvent(QKeyEvent* _event) ...@@ -559,14 +557,14 @@ void VDPMSynthesizerViewerWidget::keyPressEvent(QKeyEvent* _event)
updateGL(); updateGL();
break; break;
case Key_Plus: case Key_Minus:
viewing_parameters_.increase_tolerance(); viewing_parameters_.increase_tolerance();
std::cout << "Scree-space error tolerance^2 is increased by " std::cout << "Scree-space error tolerance^2 is increased by "
<< viewing_parameters_.tolerance_square() << std::endl; << viewing_parameters_.tolerance_square() << std::endl;
updateGL(); updateGL();
break; break;
case Key_Minus: case Key_Plus:
viewing_parameters_.decrease_tolerance(); viewing_parameters_.decrease_tolerance();
std::cout << "Screen-space error tolerance^2 is decreased by " std::cout << "Screen-space error tolerance^2 is decreased by "
<< viewing_parameters_.tolerance_square() << std::endl; << viewing_parameters_.tolerance_square() << std::endl;
......
...@@ -116,7 +116,7 @@ public: ...@@ -116,7 +116,7 @@ public:
VDPMSynthesizerViewerWidget(QWidget* _parent=0, const char* _name=0) VDPMSynthesizerViewerWidget(QWidget* _parent=0, const char* _name=0)
: MeshViewerWidget(_parent) : MeshViewerWidget(_parent)
{ {
adaptive_mode_ = false; adaptive_mode_ = true;
} }
~VDPMSynthesizerViewerWidget() ~VDPMSynthesizerViewerWidget()
......
...@@ -88,6 +88,7 @@ int main(int argc, char **argv) ...@@ -88,6 +88,7 @@ int main(int argc, char **argv)
<< " Plus : Refine mesh\n" << " Plus : Refine mesh\n"
<< " Home : Coarsen down to base mesh\n" << " Home : Coarsen down to base mesh\n"
<< " End : Refine up to finest mesh\n" << " End : Refine up to finest mesh\n"
<< " a : Switch off / on adaptive refinement\n"
<< "\n"; << "\n";
return app.exec(); 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