Changeset 2015 for GTP/trunk/Lib/Vis/Preprocessing/src/VspKdTree.cpp
- Timestamp:
- 01/22/07 20:25:06 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VspKdTree.cpp
r1012 r2015 299 299 } 300 300 301 VspKdViewCell *VspKdLeaf::GetViewCell()302 {303 return mViewCell;304 }305 301 306 302 void VspKdLeaf::SetViewCell(VspKdViewCell *viewCell) … … 2098 2094 int axis; 2099 2095 2096 cerr<<"HERE"<<endl; 2100 2097 while (1) 2101 2098 { 2102 2099 if (!node->IsLeaf()) 2103 2100 { 2104 VspKdInterior *in = dynamic_cast<VspKdInterior *>(node);2101 VspKdInterior *in = (VspKdInterior *)node; 2105 2102 position = in->mPosition; 2106 2103 axis = in->mAxis; … … 2146 2143 { 2147 2144 // compute intersection with all objects in this leaf 2148 VspKdLeaf *leaf = dynamic_cast<VspKdLeaf *>(node);2145 VspKdLeaf *leaf = (VspKdLeaf *)node; 2149 2146 ViewCell *vc = leaf->GetViewCell(); 2150 2147 … … 2156 2153 } 2157 2154 2155 #if 0 2158 2156 if (0) //matt TODO: REMOVE LATER 2159 leaf->mRays.push_back(RayInfo(new VssRay(origin, termination, NULL, NULL, 0))); 2160 2157 leaf->mRays.push_back(RayInfo(new VssRay(origin, termination, NULL, NULL, 0))); 2158 #endif 2159 2161 2160 // get the next node from the stack 2162 2161 if (tStack.empty())
Note: See TracChangeset
for help on using the changeset viewer.