Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 13, 2005, 12:05:24 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: partition the vertices into two different lists

File:
1 edited

Legend:

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

    r4611 r4612  
    304304  tList<sVec3D>      partition2;                           //!< the vertex partition 2
    305305
     306  for(int i = 0; i < box->numOfVertices; ++i)
     307  {
     308    if( separationPlane.distancePoint(box->vertices[i]) > 0.0f)
     309      partition1.add(&box->vertices[i]);
     310    else
     311      partition2.add(&box->vertices[i]);
     312  }
     313  partition2.add(&box->vertices[vertexIndex]);
     314
     315  printf("\npartition1: got %i vertices/ partition 2: got %i vertices\n", partition1.getSize(), partition2.getSize());
    306316
    307317}
Note: See TracChangeset for help on using the changeset viewer.