Changeset 5825 in orxonox.OLD for branches/collision_detection/src/lib/collision_detection/obb_tree_node.h
- Timestamp:
- Nov 29, 2005, 6:01:26 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/collision_detection/src/lib/collision_detection/obb_tree_node.h
r5718 r5825 21 21 22 22 //! A class that represents a bounding volume tree 23 class OBBTreeNode : public BVTreeNode { 23 class OBBTreeNode : public BVTreeNode 24 { 24 25 25 26 … … 29 30 30 31 /* this function returns the bounding volume of this tree node @return: returns the BV */ 31 virtual inline const BoundingVolume* getBV() const { return (BoundingVolume*)this->bvElement; } 32 virtual inline const BoundingVolume* getBV() const 33 { 34 return (BoundingVolume*)this->bvElement; 35 } 32 36 33 37 virtual void spawnBVTree(const sVec3D *verticesList, unsigned int length); … … 40 44 41 45 private: 42 void calculateBoxEigenvectors(OBB& box, const sVec3D* verticesList, unsigned int length);43 46 void calculateBoxAxis(OBB& box, const sVec3D* verticesList, unsigned int length); 44 47 … … 62 65 const OBBTree* obbTree; //!< reference to the obb tree 63 66 67 const modelInfo* modelInf; //!< pointer to the models modelInfo object 68 const int* triangleIndexes; //!< indexes to the used model triangles 69 64 70 const sVec3D* vertices; //!< pointer to the vertices data 65 71 int numOfVertices; //!< number of vertices in vertices data
Note: See TracChangeset
for help on using the changeset viewer.