Changeset 1841


Ignore:
Timestamp:
12/02/06 00:15:15 (17 years ago)
Author:
mattausch
Message:

removed bug in initial subdivision

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

Legend:

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

    r1830 r1841  
    21792179                for (cit = candidateContainer.begin(); cit != cit_end; ++ cit) 
    21802180                { 
     2181                        BvhSubdivisionCandidate *sCandidate = dynamic_cast<BvhSubdivisionCandidate *>(*cit); 
     2182                         
    21812183                        // reevaluate priority 
    2182                         EvalSubdivisionCandidate(*oSubdivisionCandidate); 
    2183                         tQueue.Push(*cit); 
     2184                        EvalSubdivisionCandidate(*sCandidate); 
     2185                        tQueue.Push(sCandidate); 
    21842186                } 
    21852187        } 
     
    21932195        } 
    21942196                 
    2195         cout << "!!size: " << GetStatistics().Leaves() << endl; 
     2197        cout << "size of initial bv subdivision: " << GetStatistics().Leaves() << endl; 
    21962198} 
    21972199 
     
    25802582        ObjectContainer::const_iterator backObjectsStart = objects->begin(); 
    25812583 
    2582     for (oit = objects->begin(); oit != (objects->end() - 1); ++ oit) 
     2584        for (oit = objects->begin(); oit != (objects->end() - 1); ++ oit) 
    25832585        { 
    25842586                Intersectable *objS = *oit; 
     
    26302632                        ); 
    26312633 
    2632         cout << "criteria met: " << terminationCriteriaMet << " " << (int)tData.mNode->mObjects.size() << " " << mInitialMinObjects << endl 
    2633                  << AreaRatio(tData.mNode->mObjects.front(), tData.mNode->mObjects.back()) << " " << mInitialMaxAreaRatio << endl 
    2634                  << tData.mNode->mObjects.back()->GetBox().SurfaceArea() << " " << mInitialMinArea << endl; 
     2634        cout << "criteria met: "<< terminationCriteriaMet << "\n"  
     2635                 << "size: " << (int)tData.mNode->mObjects.size() << " max: " << mInitialMinObjects << endl 
     2636                 << "ratio: " << AreaRatio(tData.mNode->mObjects.front(), tData.mNode->mObjects.back()) << " max: " << mInitialMaxAreaRatio << endl 
     2637                 << "area: " << tData.mNode->mObjects.back()->GetBox().SurfaceArea() << " max: " << mInitialMinArea << endl << endl; 
    26352638 
    26362639        return terminationCriteriaMet; 
  • GTP/trunk/Lib/Vis/Preprocessing/src/QtGlRenderer/QtGlRenderer.cpp

    r1387 r1841  
    15391539 
    15401540/***********************************************************************/ 
    1541 /*                     QtGlDebuggerWidget implementation                                   */ 
     1541/*                     QtGlDebuggerWidget implementation                           */ 
    15421542/***********************************************************************/ 
    15431543 
  • GTP/trunk/Lib/Vis/Preprocessing/src/RssTree.cpp

    r1832 r1841  
    28642864         
    28652865        // $$  
    2866         sumWeights = leaf->mTotalRays; 
     2866        sumWeights = (float)leaf->mTotalRays; 
    28672867 
    28682868        //$$ test 30.11. 2006  
  • GTP/trunk/Lib/Vis/Preprocessing/src/TestPreprocessor.vcproj

    r1811 r1841  
    3535                                Name="VCLinkerTool" 
    3636                                AdditionalDependencies="xerces-c_2D.lib zdll.lib zziplibd.lib devil.lib glut32.lib OpenGL32.Lib glu32.lib Preprocessor.lib glew32.lib" 
    37                                 OutputFile="$(OutDir)/Preprocessor.exe" 
     37                                OutputFile="$(OutDir)/Preprocessor.exe2" 
    3838                                LinkIncremental="2" 
    3939                                AdditionalLibraryDirectories="..\include;..\src\GL;&quot;..\lib\$(ConfigurationName)&quot;;..\..\..\..\..\..\NonGTP\Boost\lib;..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;..\..\..\..\..\..\NonGTP\Zlib\lib;..\..\..\..\..\..\NonGTP\Devil\lib" 
     
    194194                                OptimizeForWindowsApplication="TRUE" 
    195195                                AdditionalIncludeDirectories="..\include;..\..\..\..\..\..\NonGTP\Boost;..\src;..\..\..\..\..\..\NonGTP\Devil\include;..\..\..\..\..\..\NonGTP\Zlib\include;..\..\..\..\..\..\NonGTP\Xerces;&quot;$(QTDIR)\include\QtOpenGl&quot;;&quot;$(QTDIR)\include\Qt&quot;;&quot;$(QTDIR)\include\QtCore&quot;;&quot;$(QTDIR)\include&quot;" 
    196                                 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;GTP_INTERNAL" 
     196                                PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;GTP_INTERNAL;NO_QT" 
    197197                                RuntimeLibrary="2" 
    198198                                RuntimeTypeInfo="TRUE" 
     
    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;&quot;$(QTDIR)\lib&quot;;.\QtGlRenderer\Release" 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp

    r1832 r1841  
    57355735        } 
    57365736 
    5737         // export some view cell 
     5737        // export some view cells 
    57385738        int leafOut; 
    57395739        Environment::GetSingleton()->GetIntValue("ViewCells.Visualization.maxOutput", leafOut); 
  • GTP/trunk/Lib/Vis/Preprocessing/src/main.cpp

    r1832 r1841  
    3737#include "GlRenderer.h" 
    3838 
    39 #if USE_QT 
     39//#if USE_QT 
    4040#include "QtPreprocessorThread.h" 
    4141#include "QtGlRenderer.h" 
    4242#include "QtGlViewer.h" 
    43 #endif 
     43//#endif 
    4444 
    4545#define USE_EXE_PATH false 
Note: See TracChangeset for help on using the changeset viewer.