Changeset 5867 in orxonox.OLD for branches/collision_detection/src/lib
- Timestamp:
- Dec 2, 2005, 11:39:18 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/collision_detection/src/lib/collision_detection/obb_tree_node.cc
r5825 r5867 222 222 223 223 224 void OBBTreeNode::calculateBoxCovariance(OBB& box, const modelInfo& modelInf, 225 const int* triangleIndexes, unsigned int length) 224 void OBBTreeNode::calculateBoxCovariance(OBB& box, const modelInfo& modelInf, const int* triangleIndexes, unsigned int length) 226 225 { 227 226 … … 238 237 239 238 240 241 239 /* fist compute all the convex hull face/facelets and centroids */ 242 240 for( int i = 0; i < length ; ++i) … … 309 307 310 308 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 */ 317 void OBBTreeNode::calculateBoxEigenvectors(OBB& box, const modelInfo& modelInf, 312 318 const int* triangleIndexes, unsigned int length) 313 319 { … … 315 321 PRINTF(3)("Calculate the Box Eigenvectors\n"); 316 322 317 const sVec3D* verticesList;318 323 Vector axis[3]; //!< the references to the obb axis 319 324 Matrix covMat( box.covarianceMatrix ); //!< covariance matrix (in the matrix dataform) … … 340 345 341 346 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 */ 342 356 void OBBTreeNode::calculateBoxAxis(OBB& box, const modelInfo& modInfo, const int* triangleIndexes, unsigned int length) 343 357 { 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 351 362 PRINTF(3)("Calculated attributes3\n"); 352 363 /* now get the axis length */
Note: See TracChangeset
for help on using the changeset viewer.