Changeset 1733


Ignore:
Timestamp:
11/09/06 13:57:27 (18 years ago)
Author:
mattausch
Message:

removed bug from dirtycandidates

Location:
GTP/trunk/Lib/Vis/Preprocessing/src
Files:
5 edited

Legend:

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

    r1732 r1733  
    18521852                { 
    18531853                        candidate->Mail(); 
     1854                        candidate->SetDirty(true); 
    18541855                        dirtyList.push_back(candidate); 
    18551856                } 
  • GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp

    r1732 r1733  
    267267        splitQueue.Pop(); 
    268268 
     269        // split was not reevaluated before => do it now 
     270        if (splitCandidate->IsDirty()) 
     271                splitCandidate->EvalCandidate(); 
     272 
    269273        return splitCandidate; 
    270274} 
     
    471475        { 
    472476                // decide upon next split type 
    473                 if (viewSpaceQueue.Top()->IsDirty()) 
    474                         viewSpaceQueue.Top()->EvalCandidate(); 
    475  
    476                 if (objectSpaceQueue.Top()->IsDirty()) 
    477                         objectSpaceQueue.Top()->EvalCandidate(); 
    478  
    479477                const float vspPriority = viewSpaceQueue.Top() ? viewSpaceQueue.Top()->GetPriority() : -1e20f; 
    480478                const float ospPriority = objectSpaceQueue.Top() ? objectSpaceQueue.Top()->GetPriority() : -1e20f; 
     
    976974        while (!splitQueue.Empty()) 
    977975        { 
    978                 // reevaluate current candidate 
    979                 if (splitQueue.Top()->IsDirty()) 
    980                         splitQueue.Top()->EvalCandidate(); 
    981                  
    982976                const float priority = splitQueue.Top()->GetPriority(); 
    983977                const float threshold = oldCandidate ? oldCandidate->GetPriority() : 1e20f; 
  • GTP/trunk/Lib/Vis/Preprocessing/src/SubdivisionCandidate.h

    r1727 r1733  
    9898        } 
    9999 
     100        inline void SetDirty(const bool dirty) 
     101        { 
     102                mDirty = dirty; 
     103        } 
     104 
    100105        ////////// 
    101106        //-- mailing stuff 
     
    122127 
    123128        void *mEvaluationHack; 
     129 
    124130protected: 
    125131 
  • GTP/trunk/Lib/Vis/Preprocessing/src/TestPreprocessor.vcproj

    r1723 r1733  
    206206                                Name="VCLinkerTool" 
    207207                                AdditionalDependencies="xerces-c_2.lib glew32.lib zdll.lib zziplib.lib devil.lib glut32.lib OpenGL32.Lib glu32.lib Preprocessor.lib RTScene.lib RTWorld.lib QtCore4.lib qtmain.lib QtOpenGL4.lib Qt3Support4.lib QtTest4.lib QtGui4.lib QtGlRenderer.lib" 
    208                                 OutputFile="../bin/release/Preprocessor.exe" 
     208                                OutputFile="../bin/release/Preprocessor2.exe" 
    209209                                LinkIncremental="1" 
    210210                                AdditionalLibraryDirectories="..\src\GL;..\lib\release;..\..\Preprocessing\lib\release;..\..\..\..\..\..\NonGTP\Boost\lib;..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;..\..\..\..\..\..\NonGTP\Zlib\lib;..\..\..\..\..\..\NonGTP\Devil\lib;..\MultiLevelRayTracing\RTScene\Release;..\MultiLevelRayTracing\RTWorld\Release;"$(QTDIR)\lib";.\QtGlRenderer\Release" 
  • GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.cpp

    r1732 r1733  
    29942994        { 
    29952995                candidate->Mail(); 
     2996                candidate->SetDirty(true); 
    29962997                dirtyList.push_back(candidate); 
    29972998        } 
Note: See TracChangeset for help on using the changeset viewer.