Changeset 4854 in orxonox.OLD for orxonox/trunk/src/lib/graphics
- Timestamp:
- Jul 13, 2005, 10:38:31 PM (19 years ago)
- Location:
- orxonox/trunk/src/lib/graphics/spatial_separation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/spatial_separation/quadtree_node.cc
r4853 r4854 138 138 tIterator<sTriangleExt*>* iterator; //!< iterator for the list iterations 139 139 sTriangleExt* tempTri; //!< temp save place for triangle pointer 140 int counter; //!< counter for the while loops 140 141 141 142 lenA = listA->getSize(); … … 150 151 151 152 153 counter = 0; 152 154 iterator = listA->getIterator(); 153 154 155 tempTri = *iterator->nextElement(); 156 while( tempTri) 157 { 158 pTriA[counter] = tempTri; 159 tempTri = *iterator->nextElement(); 160 ++counter; 161 } 162 163 counter = 0; 164 iterator = listB->getIterator(); 165 tempTri = *iterator->nextElement(); 166 while( tempTri) 167 { 168 pTriB[counter] = tempTri; 169 tempTri = *iterator->nextElement(); 170 ++counter; 171 } 172 173 counter = 0; 174 iterator = listC->getIterator(); 175 tempTri = *iterator->nextElement(); 176 while( tempTri) 177 { 178 pTriC[counter] = tempTri; 179 tempTri = *iterator->nextElement(); 180 ++counter; 181 } 182 183 counter = 0; 184 iterator = listD->getIterator(); 185 tempTri = *iterator->nextElement(); 186 while( tempTri) 187 { 188 pTriD[counter] = tempTri; 189 tempTri = *iterator->nextElement(); 190 ++counter; 191 } 155 192 156 193 PRINTF(0)("separation complete\n"); -
orxonox/trunk/src/lib/graphics/spatial_separation/spatial_separation.cc
r4852 r4854 97 97 { 98 98 this->quadtree = new Quadtree(model->getModelInfo()); 99 this->quadtree->separate(); 100 99 //this->quadtree->separate(); 101 100 102 101 return this->quadtree;
Note: See TracChangeset
for help on using the changeset viewer.