Changeset 2105 for GTP/trunk/Lib/Vis/Preprocessing/src/RayCaster.cpp
- Timestamp:
- 02/08/07 15:46:23 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/RayCaster.cpp
r2076 r2105 123 123 AxisAlignedBox3 box = 124 124 mPreprocessor.mViewCellsManager->GetViewSpaceBox(); 125 125 126 126 float b[12]={ 127 127 box.Min().x, … … 139 139 }; 140 140 141 #if 0 142 static vector<SimpleRay *> pointerArray; 143 144 if (pointerArray.size()!=rays.size()) { 145 // realloc the pointerarray 146 pointerArray.resize(rays.size()); 147 } 148 149 // init pointer array 150 SimpleRay *p = &pointerArray[0]; 151 for (i=0; i < rays.size(); i++, p++) 152 pointerArray[i] = p; 153 #endif 154 141 155 _SortRays(rays, 142 156 0, … … 162 176 int i; 163 177 178 //const int batchsize = 16384; 164 179 const int batchsize = 8192; 165 166 // if (r - l < 32*batchsize) 167 // offset = 3; 168 169 // if (depth%5==0) 180 //const int batchsize = 128; 181 182 //if (r - l < 16*batchsize) 183 // offset = 3; 184 185 // if (depth%2==0) 170 186 // offset = 3; 171 187 … … 305 321 hitA.mObject, 306 322 mPreprocessor.mPass, 307 simpleRay.mPdf323 1.0f //simpleRay.mPdf 308 324 ); 309 325 #if DEBUG_RAYCAST … … 336 352 hitB.mObject, 337 353 mPreprocessor.mPass, 338 simpleRay.mPdf354 1.0f //simpleRay.mPdf 339 355 ); 340 356
Note: See TracChangeset
for help on using the changeset viewer.