Changeset 5870 in orxonox.OLD for branches/collision_detection/src/lib
- Timestamp:
- Dec 2, 2005, 12:30:55 PM (19 years ago)
- Location:
- branches/collision_detection/src/lib/collision_detection
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/collision_detection/src/lib/collision_detection/bounding_volume.h
r5706 r5870 23 23 24 24 inline const Vector& getCenter() const { return this->center; } 25 inline const modelInfo* getModelInfo() const { return this->modelInf; } 25 26 26 const sVec3D* getVertices() const { return this->vertices; }27 27 virtual void mergeWith(const BoundingVolume &bv) = 0; 28 28 … … 34 34 Vector center; //!< Center point of box 35 35 36 const sVec3D* vertices; //!< if CD_STORE_VERTICES enabled, this is the place, where the vert. will be sotred37 int numOfVertices; //!< number of vertices in the vertices buffer38 36 const modelInfo* modelInf; //!< Reference to the model's ModelInfo 39 37 const int* triangleIndexes; //!< Array with the triangle indexes in modelInfo 40 unsigned int numTriangles; //!< Number of triangles in this BV38 int triangleIndexesLength; //!< length of the indexes array 41 39 }; 42 40 -
branches/collision_detection/src/lib/collision_detection/obb_tree_node.cc
r5869 r5870 127 127 this->bvElement->modelInf = &modelInf; 128 128 this->bvElement->triangleIndexes = triangleIndexes; 129 this->bvElement-> numTriangles= length;129 this->bvElement->triangleIndexesLength = length; 130 130 131 131 /* create the boxes in three steps */ … … 605 605 606 606 607 //for (element = nameList.begin(); element != nameList.end(); element++)608 // iterator = partition2.getIterator();609 // element = iterator->firstElement();610 607 611 608 for(element = partition2.begin(), index = 0; element != partition2.end(); element++, index++)
Note: See TracChangeset
for help on using the changeset viewer.