Ignore:
Timestamp:
07/10/06 01:57:41 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1077 r1106  
    48104810        mHierarchyManager = new HierarchyManager(*vspTree, *ospTree); 
    48114811        Environment::GetSingleton()->GetIntValue("VspTree.Construction.samples", mInitialSamples); 
     4812 
    48124813        mVspTree->SetViewCellsManager(this); 
     4814        mOspTree->SetViewCellsManager(this); 
     4815 
    48134816        mVspTree->mViewCellsTree = mViewCellsTree; 
    48144817} 
     
    48814884        long startTime; 
    48824885 
    4883         mHierarchyManager->Construct(constructionRays, objects, &mViewSpaceBox); 
     4886        mHierarchyManager->Construct2(constructionRays, objects, &mViewSpaceBox); 
    48844887 
    48854888         
     
    52295232        GetRaySets(sampleRays, mVisualizationSamples, visRays); 
    52305233 
    5231         //-- export final view cells 
    5232  
    52335234        if (1)  
    52345235        {        
     5236                //-- export final view cells 
     5237 
    52355238                // hack pvs 
    52365239                const int savedColorCode = mColorCode; 
     
    52665269                        // HACK: export without clip plane 
    52675270                        const bool b = mUseClipPlaneForViz; 
    5268                         if (0) 
    5269                                 mUseClipPlaneForViz = false; 
     5271                        if (0) mUseClipPlaneForViz = false; 
    52705272 
    52715273                        ExportViewCellsForViz(exporter); 
     
    52785280 
    52795281                mColorCode = savedColorCode; 
     5282        } 
     5283 
     5284        if (1)  
     5285        {        
     5286                //-- export final object partition 
     5287                Exporter *exporter = Exporter::GetExporter("final_object_partition.wrl"); 
     5288                 
     5289                if (exporter) 
     5290                { 
     5291                        cout << "exporting object space partition ... "; 
     5292 
     5293                        if (mExportGeometry) 
     5294                        { 
     5295                                exporter->ExportGeometry(objects); 
     5296                        } 
     5297 
     5298                        // export rays 
     5299                        if (0 && mExportRays) 
     5300                        { 
     5301                                exporter->ExportRays(visRays, RgbColor(0, 1, 0)); 
     5302                        } 
     5303 
     5304                        exporter->SetWireframe(); 
     5305                        exporter->ExportOspTree(*mOspTree); 
     5306 
     5307                        delete exporter; 
     5308 
     5309                        cout << "finished" << endl; 
     5310                } 
    52805311        } 
    52815312 
Note: See TracChangeset for help on using the changeset viewer.