Ignore:
Timestamp:
01/16/08 17:18:02 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2593 r2601  
    10081008                                //                cout<<i<<":"<<costFunction[i]<<" "; 
    10091009                                // update cost function to an absolute value based on the total geometry count 
    1010                                 costFunction[i]*=mSceneGraph->GetRoot()->mGeometry.size(); 
     1010                                costFunction[i] *= mSceneGraph->GetSize(); 
    10111011                                if (costFunction[i] > maxCost) 
    10121012                                        maxCost = costFunction[i]; 
     
    13341334{ 
    13351335        mUseFalseColors = true; 
    1336  
    13371336        //glPushAttrib(GL_CURRENT_BIT | GL_ENABLE_BIT | GL_POLYGON_BIT); 
    13381337 
     
    13411340        //glDisable(GL_CULL_FACE); 
    13421341 
    1343         double eq[4]; 
    1344         eq[0] = mSceneCutPlane.mNormal.x; 
    1345         eq[1] = mSceneCutPlane.mNormal.y; 
    1346         eq[2] = mSceneCutPlane.mNormal.z; 
    1347         eq[3] = mSceneCutPlane.mD; 
    1348  
    13491342        if (mCutViewCells)  
    13501343        { 
     1344                double eq[4]; 
     1345                eq[0] = mSceneCutPlane.mNormal.x; 
     1346                eq[1] = mSceneCutPlane.mNormal.y; 
     1347                eq[2] = mSceneCutPlane.mNormal.z; 
     1348                eq[3] = mSceneCutPlane.mD; 
     1349 
    13511350                glClipPlane(GL_CLIP_PLANE0, eq); 
    13521351                glEnable(GL_CLIP_PLANE0); 
     
    13621361        int i; 
    13631362 
    1364         if (!mShowPvsSizes && !mShowPiercingRays && !mShowWeightedRays && !mShowWeightedCost) 
     1363        // normal rendering 
     1364        if (!mShowPvsSizes && !mShowPiercingRays && !mShowWeightedRays && !mShowWeightedCost && !mShowComparison) 
    13651365        { 
    13661366                for (i = 0; i < viewcells.size(); ++ i)  
     
    13831383                } 
    13841384        } 
    1385         else 
     1385        else // using specialised colors 
    13861386        { 
    13871387                // transparency  
Note: See TracChangeset for help on using the changeset viewer.