Ignore:
Timestamp:
09/25/06 18:54:21 (18 years ago)
Author:
mattausch
Message:

worked on guided visibility sampling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/MeshKdTree.h

    r1233 r1486  
    127127public: 
    128128 
    129   enum {SPLIT_OBJECT_MEDIAN, 
    130         SPLIT_SPATIAL_MEDIAN, 
    131         SPLIT_SAH}; 
     129  enum { 
     130          SPLIT_OBJECT_MEDIAN, 
     131          SPLIT_SPATIAL_MEDIAN, 
     132          SPLIT_SAH}; 
    132133   
    133134 
    134135  MeshKdTree(Mesh *mesh); 
    135   ~MeshKdTree() { 
    136     if (mSubdivisionCandidates) 
    137       delete mSubdivisionCandidates; 
    138      
    139     if (mRoot) 
    140       delete mRoot; 
    141   } 
     136  ~MeshKdTree(); 
    142137   
    143138  virtual bool Construct(); 
     
    155150  virtual MeshKdNode *Subdivide(const TraversalData &tdata); 
    156151   
    157   /** Get the root of the tree */ 
    158   MeshKdNode *GetRoot() const { 
    159     return mRoot; 
    160   } 
    161    
    162   AxisAlignedBox3 GetBox() const { return mMesh->mBox; } 
     152  /** Get the root of the tree  
     153  */ 
     154  MeshKdNode *GetRoot() const; 
     155   
     156  AxisAlignedBox3 GetBox() const; 
    163157 
    164158  int 
Note: See TracChangeset for help on using the changeset viewer.