Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 13, 2005, 10:38:31 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: temp removed the spatial separation structures from the loading procedure since it caused a segfault

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  
    138138  tIterator<sTriangleExt*>*      iterator;                              //!< iterator for the list iterations
    139139  sTriangleExt*                  tempTri;                               //!< temp save place for triangle pointer
     140  int                            counter;                               //!< counter for the while loops
    140141
    141142  lenA = listA->getSize();
     
    150151
    151152
     153  counter = 0;
    152154  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    }
    155192
    156193  PRINTF(0)("separation complete\n");
  • orxonox/trunk/src/lib/graphics/spatial_separation/spatial_separation.cc

    r4852 r4854  
    9797{
    9898  this->quadtree = new Quadtree(model->getModelInfo());
    99   this->quadtree->separate();
    100 
     99  //this->quadtree->separate();
    101100
    102101  return this->quadtree;
Note: See TracChangeset for help on using the changeset viewer.