Changeset 5688 in orxonox.OLD for trunk/src/lib/collision_detection/obb_tree_node.cc
- Timestamp:
- Nov 21, 2005, 11:27:39 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/collision_detection/obb_tree_node.cc
r5686 r5688 168 168 * this function creates an Bounding Volume tree from a vertices soup (no triangle data) 169 169 */ 170 void OBBTreeNode::spawnBVTree(const int depth, sVec3D *verticesList, constint length)170 void OBBTreeNode::spawnBVTree(const int depth, const sVec3D *verticesList, unsigned int length) 171 171 { 172 172 PRINT(3)("\n"); … … 225 225 226 226 227 void OBBTreeNode::calculateBoxCovariance(OBB* box, sVec3D* verticesList,int length)227 void OBBTreeNode::calculateBoxCovariance(OBB* box, const sVec3D* verticesList, unsigned int length) 228 228 { 229 229 float facelet[length]; //!< surface area of the i'th triangle of the convex hull … … 417 417 {} 418 418 419 void OBBTreeNode::calculateBoxEigenvectors(OBB* box, sVec3D* verticesList,int length)419 void OBBTreeNode::calculateBoxEigenvectors(OBB* box, const sVec3D* verticesList, unsigned int length) 420 420 { 421 421 … … 468 468 void OBBTreeNode::calculateBoxAxis(OBB* box, const modelInfo& modInfo) 469 469 { 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 475 void OBBTreeNode::calculateBoxAxis(OBB* box, const sVec3D* verticesList, unsigned int length) 476 476 { 477 477 … … 617 617 the points depending on which side they are located 618 618 */ 619 tList< sVec3D> partition1; //!< the vertex partition 1620 tList< sVec3D> partition2; //!< the vertex partition 2619 tList<const sVec3D> partition1; //!< the vertex partition 1 620 tList<const sVec3D> partition2; //!< the vertex partition 2 621 621 622 622 … … 642 642 643 643 /* now comes the separation into two different sVec3D arrays */ 644 tIterator< sVec3D>* iterator;//!< the iterator to go through the lists645 sVec3D*element; //!< the elements644 tIterator<const sVec3D>* iterator; //!< the iterator to go through the lists 645 const sVec3D* element; //!< the elements 646 646 int index; //!< index storage place 647 647 sVec3D* vertList1; //!< the vertex list 1
Note: See TracChangeset
for help on using the changeset viewer.