Changeset 2695 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
- Timestamp:
- 05/22/08 14:07:56 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r2690 r2695 2277 2277 2278 2278 2279 void VspOspViewCellsManager::SetViewSpaceBox(const AxisAlignedBox3 &box) 2280 { 2281 mViewSpaceBox = box; 2282 mHierarchyManager->mVspTree->mBoundingBox = box; 2283 2284 cout << "vsp bounding box: " << box << endl; 2285 // hack: create clip plane relative to new view space box 2286 CreateClipPlane(); 2287 // the total area of the view space has changed 2288 mTotalAreaValid = false; 2289 } 2290 2291 2279 2292 void ViewCellsManager::CreateClipPlane() 2280 2293 { … … 6218 6231 if (exporter) 6219 6232 { 6220 if (CLAMP_TO_BOX) 6221 { 6222 exporter->mClampToBox = true; 6223 } 6233 if (CLAMP_TO_BOX) exporter->mClampToBox = true; 6224 6234 6225 6235 const long starttime = GetTime(); … … 6534 6544 CreateUniqueViewCellIds(); 6535 6545 6536 int numBoxes = mPreprocessor->mKdTree->mKdIntersectables.size();6546 int numBoxes = (int)mPreprocessor->mKdTree->mKdIntersectables.size(); 6537 6547 stream.write(reinterpret_cast<char *>(&numBoxes), sizeof(int)); 6538 6548 … … 6566 6576 //-- export the view cells and the pvs 6567 6577 6568 int numViewCells = mViewCells.size();6578 int numViewCells = (int)mViewCells.size(); 6569 6579 stream.write(reinterpret_cast<char *>(&numViewCells), sizeof(int)); 6570 6580
Note: See TracChangeset
for help on using the changeset viewer.