Changeset 727 for GTP/trunk/Lib/Vis/Preprocessing/src
- Timestamp:
- 04/05/06 00:57:25 (19 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellBsp.h
r710 r727 914 914 int &contributingSamples); 915 915 916 /** Preprocesses polygons and throws out all polygons which are coincident to 917 the view space box faces (they can be problematic). 916 /** Preprocesses polygons and throws out all polygons which 917 are coincident to the view space box faces: 918 These polygons can can be problematic for bsp because they create 919 bad view cells. 918 920 */ 919 921 void PreprocessPolygons(PolygonContainer &polys); 920 922 921 /** Returns view cell corresponding to 922 the invalid view space.If it does not exist, it is created.923 /** Returns view cell corresponding to the invalid view space. 924 If it does not exist, it is created. 923 925 */ 924 926 BspViewCell *GetOrCreateOutOfBoundsCell(); -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r726 r727 324 324 ConstructSubdivision(preprocessor->mObjects, initialSamples); 325 325 326 // initial samples count for overall samples ... 326 327 numSamples += numInitialSamples; 327 328 … … 369 370 { 370 371 cout << "casting " << mSamplesPerPass << " samples of " << n << " ... "; 372 Debug << "casting " << mSamplesPerPass << " samples of " << n << " ... "; 373 371 374 VssRayContainer constructionSamples; 372 375 … … 378 381 if (0) dirSamples = !dirSamples; // toggle sampling method 379 382 383 // cast new samples 380 384 numSamples += CastPassSamples(mSamplesPerPass, 381 385 samplingType, … … 386 390 cout << "computing sample contribution for " << (int)constructionSamples.size() << " samples ... "; 387 391 388 // TODO: leak?389 if ( 1 ||SAMPLE_AFTER_SUBDIVISION)392 // computes sample contribution of cast rays TODO: leak? 393 if (SAMPLE_AFTER_SUBDIVISION) 390 394 ComputeSampleContributions(constructionSamples, true, false); 391 395 -
GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.cpp
r726 r727 2463 2463 if (!onlyValid || node->TreeValid()) 2464 2464 { 2465 ViewCell *viewCell = 2466 mViewCellsTree->GetActiveViewCell(dynamic_cast<BspLeaf *>(node)->GetViewCell()); 2465 ViewCell *leafVc = dynamic_cast<BspLeaf *>(node)->GetViewCell(); 2466 2467 ViewCell *viewCell = mViewCellsTree->GetActiveViewCell(leafVc); 2467 2468 2468 2469 if (!onlyUnmailed || !viewCell->Mailed()) -
GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.h
r720 r727 57 57 /// the probability that this node contains view point 58 58 float mProbability; 59 /// geometry of node induced by halfplanes59 /// geometry of node as induced by planes 60 60 BspNodeGeometry *mGeometry; 61 61 /// pvs size … … 63 63 /// how often this branch has missed the max-cost ratio 64 64 int mMaxCostMisses; 65 /// if this node is a kd-node (i.e., boundaries are axis aligned )65 /// if this node is a kd-node (i.e., boundaries are axis aligned 66 66 bool mIsKdNode; 67 // / current split axis: used for octree67 // current axis 68 68 int mAxis; 69 // / for priority traversal: priority of this traversal data69 // current priority 70 70 float mPriority; 71 71 … … 89 89 mMaxCostMisses(0), 90 90 mIsKdNode(false), 91 mPriority(0) 91 mPriority(0), 92 mAxis(0) 92 93 {} 93 94 … … 108 109 mMaxCostMisses(0), 109 110 mIsKdNode(false), 110 mPriority(0) 111 mPriority(0), 112 mAxis(0) 111 113 {} 112 114 … … 123 125 mGeometry(geom), 124 126 mMaxCostMisses(0), 125 mIsKdNode(false) 127 mIsKdNode(false), 128 mAxis(0) 126 129 {} 127 130
Note: See TracChangeset
for help on using the changeset viewer.