Changeset 2647 for GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.cpp
- Timestamp:
- 03/18/08 16:29:14 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.cpp
r2643 r2647 138 138 mPvsStatFrames); 139 139 140 Debug<<"Info: will evaluate pixel error with "<<mPvsStatFrames<<" samples"<<endl; 140 141 141 142 mPvsErrorBuffer.resize(mPvsStatFrames); … … 1571 1572 1572 1573 glFinish(); 1574 1575 static bool first = true; 1576 if (first) { 1577 1578 1579 bool exportRandomViewCells; 1580 Environment::GetSingleton()->GetBoolValue("ViewCells.exportRandomViewCells", 1581 exportRandomViewCells); 1582 1583 if (0 && exportRandomViewCells) 1584 { 1585 char buff[512]; 1586 Environment::GetSingleton()->GetStringValue("Scene.filename", buff); 1587 string filename(buff); 1588 1589 string viewCellPointsFile; 1590 1591 if (strstr(filename.c_str(), ".obj")) 1592 viewCellPointsFile = ReplaceSuffix(filename, ".obj", ".vc"); 1593 else if (strstr(filename.c_str(), ".dat")) 1594 viewCellPointsFile = ReplaceSuffix(filename, ".dat", ".vc"); 1595 else if (strstr(filename.c_str(), ".x3d")) 1596 viewCellPointsFile = ReplaceSuffix(filename, ".x3d", ".vc"); 1597 1598 1599 cout << "exporting random view cells" << endl; 1600 preprocessor->mViewCellsManager->ExportRandomViewCells(viewCellPointsFile); 1601 cout << "finished" << endl; 1602 } 1603 first = false; 1604 } 1605 1573 1606 cout<<endl<<flush; 1574 1607 } … … 1630 1663 1631 1664 glFinish(); 1665 1666 1632 1667 cout << endl << flush; 1633 1668 }
Note: See TracChangeset
for help on using the changeset viewer.