rem: scene = SceneFileHandler::the().read(argv[1]); if (scene == NullFC) { SLOG << "Could not read file " << argv[1] << std::endl; exit(-1); }
add: if(!strcmp(strrchr(argv[1], '.'), ".dat")) scene = makeVolume(argv[1]); else scene = SceneFileHandler::the().read(argv[1]); if (scene == NullFC) { SLOG << "Could not read file " << argv[1] << std::endl; exit(-1); }
context: int main(int argc, char **argv){    // OSG init    osgInit(argc,argv);    // GLUT init    int winid = setupGLUT(&argc, argv);    // the connection between GLUT and OpenSG    GLUTWindowPtr gwin= GLUTWindow::create();    gwin->setId(winid);    gwin->init();    // set log level to lowest unless specified otherwise by env variable    osgLog().setLogLevel((LogLevel) 0);        // create the scene or load it from a .osg-file    if (argc == 1)        scene = makeVolume("00_data64x64x64.dat");    else    {        scene = SceneFileHandler::the().read(argv[1]);	if (scene == NullFC)	{	    SLOG << "Could not read file " << argv[1] << std::endl;	    exit(-1);	}    }    // create the SimpleSceneManager helper    mgr = new SimpleSceneManager;    // tell the manager what to manage    mgr->setWindow   (gwin );    mgr->setRoot     (scene);    mgr->setHighlight(scene);    // show the whole scene    mgr->showAll();    Pnt3f from = mgr->getNavigator()->getFrom();    from[2] = 3 * from[2];    mgr->getNavigator()->setFrom(from);        // GLUT main loop    glutMainLoop();    return 0;}