Changeset 1010


Ignore:
Timestamp:
06/12/06 01:40:25 (18 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis/Preprocessing/src
Files:
4 edited

Legend:

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

    r1004 r1010  
     1#include <time.h> 
     2#include <iomanip> 
     3#include <stack> 
     4 
     5 
    16#include "ViewCell.h" 
    27#include "Mesh.h" 
     
    813#include "ViewCellsManager.h" 
    914#include "Exporter.h" 
    10  
    11 #include <time.h> 
    12 #include <iomanip> 
    13 #include <stack> 
    14  
    1515 
    1616 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCell.h

    r1008 r1010  
    88#include "Material.h" 
    99#include "gzstream.h" 
    10 #include "VspOspTree.h" 
     10 
    1111 
    1212namespace GtpVisibilityPreprocessor { 
     
    374374 
    375375 
    376 //typedef HierarchyLeafViewCell<VspLeaf *> VspViewCell; 
     376typedef HierarchyLeafViewCell<VspLeaf *> VspViewCell; 
    377377typedef HierarchyLeafViewCell<BspLeaf *> BspViewCell; 
    378378typedef HierarchyLeafViewCell<KdLeaf *> KdViewCell; 
  • GTP/trunk/Lib/Vis/Preprocessing/src/VspOspTree.cpp

    r1008 r1010  
    33#include <iomanip> 
    44 
     5#include "ViewCell.h" 
    56#include "Plane3.h" 
    67#include "VspOspTree.h" 
    78#include "Mesh.h" 
    89#include "common.h" 
    9 #include "ViewCell.h" 
    1010#include "Environment.h" 
    1111#include "Polygon3.h" 
     
    1414#include "Exporter.h" 
    1515#include "Plane3.h" 
    16 #include "ViewCellBsp.h" 
    1716#include "ViewCellsManager.h" 
    1817#include "Beam.h" 
     
    401400                 (sizeof(VspOspTree) +  
    402401                  mVspStats.Leaves() * sizeof(VspLeaf) +  
    403                   mCreatedViewCells * sizeof(BspViewCell) + 
     402                  mCreatedViewCells * sizeof(VspViewCell) + 
    404403                  mVspStats.pvs * sizeof(ObjectPvsData) + 
    405404                  mVspStats.Interior() * sizeof(VspInterior) + 
     
    604603        { 
    605604                VspLeaf *leaf = dynamic_cast<VspLeaf *>(newNode); 
    606                 BspViewCell *viewCell = new BspViewCell(); 
     605                VspViewCell *viewCell = new VspViewCell(); 
    607606 
    608607        leaf->SetViewCell(viewCell); 
     
    11471146        } 
    11481147 
    1149  
    1150         BspNodeGeometry geomFront; 
    1151         BspNodeGeometry geomBack; 
    1152          
     1148#if TODO 
    11531149        pFront = geomFront.GetVolume(); 
    11541150        pBack = pOverall - pFront; 
    1155  
     1151#endif 
    11561152                 
    11571153 
     
    20562052ViewCell *VspOspTree::GetViewCell(const Vector3 &point, const bool active) 
    20572053{ 
    2058 #if TODO 
    20592054        if (mRoot == NULL) 
    20602055                return NULL; 
     
    20782073                {        
    20792074                        VspInterior *interior = dynamic_cast<VspInterior *>(node); 
    2080          
     2075#if TODO         
    20812076                        // random decision 
    20822077                        if (interior->GetPlane().Side(point) < 0) 
     
    20842079                        else 
    20852080                                nodeStack.push(interior->GetFront()); 
     2081#endif 
    20862082                } 
    20872083        } 
     
    20912087        else 
    20922088                return viewcell; 
    2093 #endif 
    20942089} 
    20952090 
  • GTP/trunk/Lib/Vis/Preprocessing/src/VspOspTree.h

    r1008 r1010  
    22#define _VspOspTree_H__ 
    33 
     4#include <stack> 
     5 
    46#include "Mesh.h" 
    57#include "Containers.h" 
    6 #include "Polygon3.h" 
    7 #include <stack> 
    88#include "Statistics.h" 
    99#include "VssRay.h" 
     
    1515 
    1616class ViewCellLeaf; 
    17 class VspViewCell; 
     17//class VspViewCell; 
    1818class Plane3; 
    1919class AxisAlignedBox3; 
Note: See TracChangeset for help on using the changeset viewer.