Changeset 810 for GTP/trunk/Lib/Vis/Preprocessing
- Timestamp:
- 04/24/06 18:46:20 (19 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/scripts/Preprocessor.vcproj
r752 r810 163 163 </File> 164 164 <File 165 RelativePath="..\src\FromPointVisibilityTree.cpp"> 166 </File> 167 <File 168 RelativePath="..\src\FromPointVisibilityTree.h"> 169 </File> 170 <File 165 171 RelativePath="..\src\GlRenderer.cpp"> 166 172 </File> -
GTP/trunk/Lib/Vis/Preprocessing/src/Containers.h
r503 r810 14 14 class Ray; 15 15 class Mesh; 16 17 struct VisibilityPoint; 16 18 17 19 /** Container storing polygons used during BSP tree construction. … … 45 47 typedef vector<Mesh *> MeshContainer; 46 48 49 /** Container storing visibility points, i.e. locations in space storing from point visibility 50 information. 51 */ 52 typedef vector<VisibilityPoint *> VisibilityPointsContainer; 47 53 48 54 #endif // _Container_H__ -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCell.h
r801 r810 95 95 friend class BspViewCellsManager; 96 96 friend class VspBspTree; 97 friend class FromPointVisibilityTree; 97 98 friend class BspTree; 98 99 -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.h
r752 r810 316 316 /** sets validy of all viewcells 317 317 */ 318 virtual void SetValidity( 319 int minPvsSize, 318 virtual void SetValidity(int minPvsSize, 320 319 int maxPvsSize) const; 321 320 -
GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.cpp
r801 r810 1197 1197 1198 1198 mSplitCandidates->push_back(SortableEntry(positive ? SortableEntry::ERayMin : SortableEntry::ERayMax, 1199 pos, (*ri).mRay));1199 pos, (*ri).mRay)); 1200 1200 1201 1201 pos = (*ri).ExtrapTermination(axis); … … 1204 1204 1205 1205 mSplitCandidates->push_back(SortableEntry(positive ? SortableEntry::ERayMax : SortableEntry::ERayMin, 1206 pos, (*ri).mRay));1206 pos, (*ri).mRay)); 1207 1207 } 1208 1208 … … 1230 1230 // C = ct_div_ci + (ql*rl + qr*rr)/queries 1231 1231 1232 int pvsl = 0, pvsr = pvsSize; 1232 int pvsl = 0; 1233 int pvsr = pvsSize; 1233 1234 1234 1235 int pvsBack = pvsl; … … 1329 1330 sum = pvsl * ((*ci).value - minBox) + pvsr * (maxBox - (*ci).value); 1330 1331 1331 // cout<<"pos="<<(*ci).value<<"\t q=("<<ql<<","<<qr<<")\t r=("<<rl<<","<<rr<<")"<<endl;1332 // 1332 //cout << "pos=" << (*ci).value << "\t pvs=(" << pvsl << "," << pvsr << ")" << endl; 1333 //cout<<"cost= "<<sum<<endl; 1333 1334 1334 1335 if (sum < minSum) … … 1343 1344 } 1344 1345 1345 //Debug << "pos: " << position << " sizebox: " << sizeBox << " pvs: " << pvsSize << endl;1346 Debug << "pos: " << position << " sizebox: " << sizeBox << " pvs: " << pvsSize << endl; 1346 1347 1347 1348 // -- compute cost … … 1413 1414 1414 1415 int sAxis = 0; 1415 bool maxDepthForDrivingAxis = 0; 1416 1417 const bool useSpecialAxis = mOnlyDrivingAxis || mUseRandomAxis || 1416 // hack : subdivide along driving axis up to certain depth 1417 int maxDepthForDrivingAxis = 0; 1418 1419 const bool useSpecialAxis = mOnlyDrivingAxis || mUseRandomAxis || 1418 1420 mCirculatingAxis || (tData.mDepth < maxDepthForDrivingAxis); 1419 1421 … … 1529 1531 int &splitAxis) 1530 1532 { 1531 // hack1533 // HACK matt: subdivide regularily to certain depth 1532 1534 if (data.mDepth < 0) 1533 1535 { -
GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.h
r801 r810 28 28 struct BspRay; 29 29 30 //#define OCTREE_HACK 0 30 31 31 /** 32 32 This is a view space partitioning specialised BSPtree.
Note: See TracChangeset
for help on using the changeset viewer.