Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5867 in orxonox.OLD for branches/collision_detection/src/lib


Ignore:
Timestamp:
Dec 2, 2005, 11:39:18 AM (19 years ago)
Author:
patrick
Message:

collision_detection: further rewrite of some function

File:
1 edited

Legend:

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

    r5825 r5867  
    222222
    223223
    224 void OBBTreeNode::calculateBoxCovariance(OBB& box, const modelInfo& modelInf,
    225     const int* triangleIndexes, unsigned int length)
     224void OBBTreeNode::calculateBoxCovariance(OBB& box, const modelInfo& modelInf, const int* triangleIndexes, unsigned int length)
    226225{
    227226
     
    238237
    239238
    240 
    241239  /* fist compute all the convex hull face/facelets and centroids */
    242240  for( int i = 0; i < length ; ++i)
     
    309307
    310308
    311 void OBBTreeNode::calculateBoxEigenvectors(OBB& box, const modelInfo& modInfo,
     309
     310/**
     311 *  calculate the eigenvectors for the object oriented box
     312 * @param box: reference to the box
     313 * @param modelInf: the model info structure of the model
     314 * @param tirangleIndexes: an array with the indexes of the triangles inside this
     315 * @param length: the length of the indexes array
     316 */
     317void OBBTreeNode::calculateBoxEigenvectors(OBB& box, const modelInfo& modelInf,
    312318    const int* triangleIndexes, unsigned int length)
    313319{
     
    315321  PRINTF(3)("Calculate the Box Eigenvectors\n");
    316322
    317   const sVec3D*  verticesList;
    318323  Vector         axis[3];                            //!< the references to the obb axis
    319324  Matrix         covMat(  box.covarianceMatrix  );   //!< covariance matrix (in the matrix dataform)
     
    340345
    341346
     347
     348
     349/**
     350 *  calculate the eigenvectors for the object oriented box
     351 * @param box: reference to the box
     352 * @param modelInf: the model info structure of the model
     353 * @param tirangleIndexes: an array with the indexes of the triangles inside this
     354 * @param length: the length of the indexes array
     355 */
    342356void OBBTreeNode::calculateBoxAxis(OBB& box, const modelInfo& modInfo, const int* triangleIndexes, unsigned int length)
    343357{
    344   //this->calculateBoxAxis(box, (const sVec3D*)modInfo.pVertices, modInfo.numVertices);
    345 }
    346 
    347 
    348 
    349 void OBBTreeNode::calculateBoxAxis(OBB& box, const sVec3D* verticesList, unsigned int length)
    350 {
     358
     359  sVec3D* verticesList;
     360
     361
    351362  PRINTF(3)("Calculated attributes3\n");
    352363  /* now get the axis length */
Note: See TracChangeset for help on using the changeset viewer.