Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 21, 2005, 11:27:39 PM (18 years ago)
Author:
patrick
Message:

orxonox/trunk: the const collision detection war - strike

File:
1 edited

Legend:

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

    r5686 r5688  
    168168 * this function creates an Bounding Volume tree from a vertices soup (no triangle data)
    169169 */
    170 void OBBTreeNode::spawnBVTree(const int depth, sVec3D *verticesList, const int length)
     170void OBBTreeNode::spawnBVTree(const int depth, const sVec3D *verticesList, unsigned int length)
    171171{
    172172  PRINT(3)("\n");
     
    225225
    226226
    227 void OBBTreeNode::calculateBoxCovariance(OBB* box, sVec3D* verticesList, int length)
     227void OBBTreeNode::calculateBoxCovariance(OBB* box, const sVec3D* verticesList, unsigned int length)
    228228{
    229229  float     facelet[length];                         //!< surface area of the i'th triangle of the convex hull
     
    417417{}
    418418
    419 void OBBTreeNode::calculateBoxEigenvectors(OBB* box, sVec3D* verticesList, int length)
     419void OBBTreeNode::calculateBoxEigenvectors(OBB* box, const sVec3D* verticesList, unsigned int length)
    420420{
    421421
     
    468468void OBBTreeNode::calculateBoxAxis(OBB* box, const modelInfo& modInfo)
    469469{
    470   this->calculateBoxAxis( box, &modInfo.pVertices, modInfo.numVertices);
    471 }
    472 
    473 
    474 
    475 void OBBTreeNode::calculateBoxAxis(OBB* box, sVec3D* verticesList, int length)
     470  //this->calculateBoxAxis( box, modInfo.pVertices, modInfo.numVertices);
     471}
     472
     473
     474
     475void OBBTreeNode::calculateBoxAxis(OBB* box, const sVec3D* verticesList, unsigned int length)
    476476{
    477477
     
    617617  the points depending on which side they are located
    618618  */
    619   tList<sVec3D>      partition1;                           //!< the vertex partition 1
    620   tList<sVec3D>      partition2;                           //!< the vertex partition 2
     619  tList<const sVec3D>      partition1;                           //!< the vertex partition 1
     620  tList<const sVec3D>      partition2;                           //!< the vertex partition 2
    621621
    622622
     
    642642
    643643  /* now comes the separation into two different sVec3D arrays */
    644   tIterator<sVec3D>* iterator;                             //!< the iterator to go through the lists
    645   sVec3D*            element;                              //!< the elements
     644  tIterator<const sVec3D>* iterator;                       //!< the iterator to go through the lists
     645  const sVec3D*      element;                              //!< the elements
    646646  int                index;                                //!< index storage place
    647647  sVec3D*            vertList1;                            //!< the vertex list 1
Note: See TracChangeset for help on using the changeset viewer.