- Timestamp:
- 10/18/05 17:28:31 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/SamplingPreprocessor.cpp
r339 r340 153 153 int sampleContributions = 0; 154 154 155 long t1 = Get Time();155 long t1 = GetRealTime(); 156 156 // cast ray to KD tree to find intersection with other objects 157 157 mKdTree->CastRay(ray); 158 long t2 = GetTime(); 159 160 cout<<object->GetId()<<" "<<TimeDiff(t1, t2); 158 long t2 = GetRealTime(); 159 160 if (0 && object->GetId() > 2197) { 161 object->Describe(cout)<<endl; 162 cout<<ray<<endl; 163 } 164 165 // cout<<object->GetId()<<" "<<TimeDiff(t1, t2)<<endl; 161 166 162 167 if (mViewCellsType == BSP_VIEW_CELLS) … … 380 385 bool viewcellSample = true; 381 386 int sampleContributions; 382 387 bool debug = false; //(object->GetId() >= 2199); 383 388 if (viewcellSample) { 384 389 nodeToSample = mKdTree->GetRandomLeaf(Plane3(normal, point)); … … 394 399 break; 395 400 } 396 397 401 if (tries == maxTries) 398 402 direction = UniformRandomVector(normal); 403 404 if (debug) { 405 cout<< 406 "normal "<<normal<<endl<< 407 "tries "<<tries<<endl<< 408 "dir="<<direction<<endl; 409 } 410 399 411 } 400 412 else {
Note: See TracChangeset
for help on using the changeset viewer.