What is the libQGLViewer
The libQGLViewer is a C++ library based on Qt that eases the creation of OpenGL 3D viewers. It is redistributed with the source of SOFA in the extlibs directory.
Enabling the SOFA Viewer based on libQGLViewer
- Edit your sofa-local.cfg. See the section based on [MakefileGeneration|makefile generation] for more information on how to do that on the different supported platforms.
- Uncomment the line DEFINES += SOFA_GUI_QGLVIEWER
- [MakefileGeneration|Regenerate the makefiles or visual studio projects]
- rebuild SOFA or if you use a unix shell, you can use the c++touch script to reduce the compilation time.
Using the SOFA Viewer based on libQGLViewer
From the command line
runSofa -g qglviewer