Changeset 1486 for GTP/trunk/Lib/Vis/Preprocessing/src/MeshKdTree.h
- Timestamp:
- 09/25/06 18:54:21 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/MeshKdTree.h
r1233 r1486 127 127 public: 128 128 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}; 132 133 133 134 134 135 MeshKdTree(Mesh *mesh); 135 ~MeshKdTree() { 136 if (mSubdivisionCandidates) 137 delete mSubdivisionCandidates; 138 139 if (mRoot) 140 delete mRoot; 141 } 136 ~MeshKdTree(); 142 137 143 138 virtual bool Construct(); … … 155 150 virtual MeshKdNode *Subdivide(const TraversalData &tdata); 156 151 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; 163 157 164 158 int
Note: See TracChangeset
for help on using the changeset viewer.