Ignore:
Timestamp:
03/15/06 08:59:33 (18 years ago)
Author:
mattausch
Message:

added means for rotating scene

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.cpp

    r685 r694  
    10281028 
    10291029                        if (frontData.mProbability < -0.00001) 
    1030                                 Debug << "here2 error f: " << frontData.mProbability << endl; 
     1030                                Debug << "fatal error f: " << frontData.mProbability << endl; 
    10311031                        if (backData.mProbability < -0.00001) 
    1032                                 Debug << "here2 error b: " << backData.mProbability << endl; 
     1032                                Debug << "fatal error b: " << backData.mProbability << endl; 
    10331033 
    10341034                        // clamp because of precision issues 
     
    29032903} 
    29042904 
     2905 
    29052906BspLeaf *VspBspTree::GetRandomLeaf(const bool onlyUnmailed) 
    29062907{ 
     
    29382939} 
    29392940 
     2941 
    29402942int VspBspTree::ComputePvsSize(const RayInfoContainer &rays) const 
    29412943{ 
     
    29702972        return pvsSize; 
    29712973} 
     2974 
    29722975 
    29732976float VspBspTree::GetEpsilon() const 
     
    30393042 
    30403043        float t; 
    3041         //const float thresh = 1 ? 1e-6f : 0.0f; 
    3042         const float thresh = 0.01f; 
    3043  
     3044        const float thresh = 1e-6f; // matt: change this 
     3045         
    30443046        while (1) 
    30453047        { 
     
    30723074                                farChild = in->GetBack(); // plane splits ray 
    30733075                        } 
    3074                         else // one of the ray end points on the plane 
     3076                        else // one of the ray end points is on the plane 
    30753077                        {       // NOTE: what to do if ray is coincident with plane? 
    30763078                                if (extSide < 0) 
    30773079                                        node = in->GetBack(); 
    3078                                 else  
     3080                                else //if (extSide > 0) 
    30793081                                        node = in->GetFront(); 
    3080                                                                  
     3082                                //else break; // coincident => count no intersections 
     3083 
    30813084                                continue; // no far child 
    30823085                        } 
     
    33673370                 
    33683371                vector<BspLeaf *> neighbors; 
    3369                 if (0) 
     3372                if (1) 
    33703373                        FindNeighbors(leaf, neighbors, true); 
    33713374                else 
Note: See TracChangeset for help on using the changeset viewer.