Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 10, 2005, 4:30:00 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: to show, that the algorithm works also with more than 3 vertices:), code renicer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/collision_detection/obb_tree.cc

    r4586 r4587  
    9696
    9797  /* generate some test vertices */
    98   sVec3D* vertList = new sVec3D[3];
    99   sVec3D data[]  = {{0.0, 0.0, 0.0},{10.0, -5.0, 5.0},{10.0, 5.0, 0.0}};
     98  sVec3D* vertList = new sVec3D[4];
     99  sVec3D data[]  = {{0.0, 0.0, 0.0},{10.0, -5.0, 5.0},{10.0, 5.0, 0.0}, {5.0, 4.0, 1.0}};
    100100
    101101  for(int i = 0; i < 3; ++i)
     
    106106    }
    107107
    108   this->spawnBVTree(1, vertList, 3);
     108  this->spawnBVTree(1, vertList, 4);
    109109
    110110  PRINT(0)("=  Spawning Tree: Finished\n");
Note: See TracChangeset for help on using the changeset viewer.