Ignore:
Timestamp:
08/20/06 22:48:01 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1221 r1233  
    88#include "ViewCellBsp.h" 
    99#include "KdTree.h" 
    10 #include "VspOspTree.h" 
     10#include "HierarchyManager.h" 
    1111#include "Exporter.h" 
    1212#include "VspBspTree.h" 
     
    1919#include "ResourceManager.h" 
    2020#include "KdIntersectable.h" 
     21#include "VspTree.h" 
     22#include "OspTree.h" 
     23 
    2124 
    2225// should not count origin object for sampling because it disturbs heuristics 
     
    34723475                        exporter->SetWireframe(); 
    34733476 
    3474                         KdPvsMap::iterator i = object->mKdPvs.mEntries.begin(); 
     3477                        KdPvsMap::iterator kit = object->mKdPvs.mEntries.begin(); 
    34753478                        Intersectable::NewMail(); 
    34763479 
     
    34793482                        ObjectContainer visibleObjects; 
    34803483 
    3481                         for (; i != object->mKdPvs.mEntries.end(); i++) 
     3484                        for (; kit != object->mKdPvs.mEntries.end(); i++) 
    34823485                        { 
    3483                                 KdNode *node = (*i).first; 
     3486                                KdNode *node = (*kit).first; 
    34843487                                exporter->ExportBox(mKdTree->GetBox(node)); 
    34853488 
     
    54105413                                        // export bounding box of node 
    54115414                                        KdIntersectable *kdObj  = dynamic_cast<KdIntersectable *>(obj); 
    5412                                         AxisAlignedBox3 box = mOspTree->GetBoundingBox(kdObj->GetNode()); 
     5415                                        AxisAlignedBox3 box = mOspTree->GetBoundingBox(kdObj->GetItem()); 
    54135416                                         
    54145417                                        exporter->SetWireframe(); 
     
    55095512         
    55105513        // the type of the view space partition 
    5511         stream << "<ViewSpacePartition>" << endl; 
     5514        stream << "<ViewSpaceHierarchy>" << endl; 
    55125515        mVspTree->Export(stream); 
    55135516        stream << endl << "</ViewSpacePartitioin>" << endl; 
     
    55175520         
    55185521        // the type of the view cells hierarchy 
    5519         stream << "<ObjectSpacePartition>" << endl; 
     5522        stream << "<ObjectSpaceHierarchy>" << endl; 
    55205523        mOspTree->Export(stream); 
    5521         stream << endl << "</ObjectSpacePartition>" << endl; 
     5524        stream << endl << "</ObjectSpaceHierarchy>" << endl; 
    55225525 
    55235526 
Note: See TracChangeset for help on using the changeset viewer.