Changeset 4855 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- Jul 13, 2005, 11:27:44 PM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/spatial_separation/quadtree_node.cc
r4854 r4855 55 55 void QuadtreeNode::init() 56 56 { 57 PRINTF(0)("Creating QuadtreeNode\n");58 57 this->setClassID(CL_QUADTREE_NODE, "QuadtreeNode"); 59 58 … … 125 124 printf("Temp. list Num. o El: A: %i, B: %i, C: %i, D: %i\n", listA->getSize(), listB->getSize(), listC->getSize(), listD->getSize()); 126 125 127 128 126 129 127 /* Separating into to the triangle lists */ … … 137 135 float lenD; //!< length array D 138 136 tIterator<sTriangleExt*>* iterator; //!< iterator for the list iterations 139 sTriangleExt* 137 sTriangleExt** tempTri; //!< temp save place for triangle pointer 140 138 int counter; //!< counter for the while loops 141 139 … … 153 151 counter = 0; 154 152 iterator = listA->getIterator(); 155 tempTri = *iterator->nextElement();156 while( tempTri) 157 { 158 pTriA[counter] = tempTri;159 tempTri = *iterator->nextElement();153 tempTri = iterator->nextElement(); 154 while( tempTri) 155 { 156 pTriA[counter] = *tempTri; 157 tempTri = iterator->nextElement(); 160 158 ++counter; 161 159 } … … 163 161 counter = 0; 164 162 iterator = listB->getIterator(); 165 tempTri = *iterator->nextElement();166 while( tempTri) 167 { 168 pTriB[counter] = tempTri;169 tempTri = *iterator->nextElement();163 tempTri = iterator->nextElement(); 164 while( tempTri) 165 { 166 pTriB[counter] = *tempTri; 167 tempTri = iterator->nextElement(); 170 168 ++counter; 171 169 } … … 173 171 counter = 0; 174 172 iterator = listC->getIterator(); 175 tempTri = *iterator->nextElement();176 while( tempTri) 177 { 178 pTriC[counter] = tempTri;179 tempTri = *iterator->nextElement();173 tempTri = iterator->nextElement(); 174 while( tempTri) 175 { 176 pTriC[counter] = *tempTri; 177 tempTri = iterator->nextElement(); 180 178 ++counter; 181 179 } … … 183 181 counter = 0; 184 182 iterator = listD->getIterator(); 185 tempTri = *iterator->nextElement();186 while( tempTri) 187 { 188 pTriD[counter] = tempTri;189 tempTri = *iterator->nextElement();183 tempTri = iterator->nextElement(); 184 while( tempTri) 185 { 186 pTriD[counter] = *tempTri; 187 tempTri = iterator->nextElement(); 190 188 ++counter; 191 189 } … … 241 239 242 240 PRINTF(0)("Dimension Informationation: X: min/max %f/%f Y: min/max %f/%f\n", minX, maxX, minY, maxY); 243 PRINTF(0)("Center: %f, %f Axis: %f\n", rect->getCenter()->x, rect->getCenter()->y, rect->getCenter()->z, rect->getAxis());241 PRINTF(0)("Center: %f, %f, %f Axis: %f\n", rect->getCenter()->x, rect->getCenter()->y, rect->getCenter()->z, rect->getAxis()); 244 242 return rect; 245 243 } -
orxonox/trunk/src/lib/graphics/spatial_separation/spatial_separation.cc
r4854 r4855 97 97 { 98 98 this->quadtree = new Quadtree(model->getModelInfo()); 99 //this->quadtree->separate();99 this->quadtree->separate(); 100 100 101 101 return this->quadtree; -
orxonox/trunk/src/world_entities/terrain.cc
r4854 r4855 39 39 this->loadParams(root); 40 40 41 //SpatialSeparation* ssp = new SpatialSeparation((AbstractModel*)this->model, 10.0f); 42 //delete ssp; 43 } 41 SpatialSeparation* ssp = new SpatialSeparation((AbstractModel*)this->model, 10.0f); 42 delete ssp; 43 } 44 44 45 45 46 /**
Note: See TracChangeset
for help on using the changeset viewer.