- Timestamp:
- 02/20/06 02:13:08 (19 years ago)
- Location:
- GTP/trunk/Lib/Vis
- Files:
-
- 5 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/scripts/default.env
r655 r656 13 13 #;../data/vienna/vienna-plane.x3d 14 14 # filename ../data/vienna/viewcells-25-sel.x3d 15 filename ../data/atlanta/atlanta2.x3d15 # filename ../data/atlanta/atlanta2.x3d 16 16 # filename ../data/soda/soda.dat 17 #filename ../data/soda/soda5.dat17 filename ../data/soda/soda5.dat 18 18 } 19 19 … … 25 25 type vss 26 26 # type rss 27 detectEmptyViewSpace false27 detectEmptyViewSpace true 28 28 } 29 29 … … 332 332 globalCostMissTolerance 4 333 333 minGlobalCostRatio 0.0000001 334 # minGlobalCostRatio 0.0001 334 335 maxViewCells 40000 335 useSplitCostQueue true336 336 337 337 338 # used for pvs criterium … … 344 345 } 345 346 347 useSplitCostQueue false 348 346 349 useCostHeuristics true 347 350 splitUseOnlyDrivingAxis false -
GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
r599 r656 305 305 306 306 #if USE_ASCII 307 ifstream samplesIn(fileName , ios::binary);307 ifstream samplesIn(fileName); 308 308 if (!samplesIn.is_open()) 309 309 return false; -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellBsp.h
r648 r656 168 168 /// accumulated number of rays refs 169 169 int accumRays; 170 int pvs; 170 171 171 172 // Constructor … … 193 194 polys = 0; 194 195 accumDepth = 0; 195 196 pvs = 0; 196 197 maxDepthNodes = 0; 197 198 minPvsNodes = 0; -
GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.cpp
r655 r656 415 415 416 416 // TODO: return memory usage in MB 417 float VspBspTree::GetMemUsage( /*const VspBspTraversalQueue &tstack*/) const418 { 419 return 420 (sizeof(VspBspTree) +421 (float)mBspStats.Leaves() * sizeof(BspLeaf) +422 // the nodes in the stack is the minimal additional number of leaves423 //(float)tstack.size() * sizeof(BspLeaf) +424 mBspStats.Interior() * sizeof(BspInterior) +425 mBspStats.accumRays * sizeof(RayInfo)) / (1024.0f * 1024.0f);417 float VspBspTree::GetMemUsage() const 418 { 419 return (float) 420 (sizeof(VspBspTree) + 421 mBspStats.Leaves() * sizeof(BspLeaf) + 422 mCreatedViewCells * sizeof(BspViewCell) + 423 mBspStats.pvs * sizeof(ObjectPvsData) + 424 mBspStats.Interior() * sizeof(BspInterior) + 425 mBspStats.accumRays * sizeof(RayInfo)) / (1024.0f * 1024.0f); 426 426 } 427 427 … … 1994 1994 mBspStats.maxPvs = data.mPvs; 1995 1995 1996 mBspStats.pvs += data.mPvs; 1997 1996 1998 if (data.mDepth < mBspStats.minDepth) 1997 1999 mBspStats.minDepth = data.mDepth; 1998 2000 1999 2001 if (data.mDepth >= mTermMaxDepth) 2000 2002 ++ mBspStats.maxDepthNodes; … … 2019 2021 2020 2022 ++ mCreatedViewCells; 2023 2021 2024 #ifdef _DEBUG 2022 2025 Debug << "BSP stats: "
Note: See TracChangeset
for help on using the changeset viewer.