Changeset 6447 in orxonox.OLD for branches/collision_detection/src/lib/collision_detection/obb_tree_node.h
- Timestamp:
- Jan 9, 2006, 12:39:15 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/collision_detection/src/lib/collision_detection/obb_tree_node.h
r5882 r6447 25 25 26 26 public: 27 OBBTreeNode(const OBBTree& tree, unsignedint depth);27 OBBTreeNode(const OBBTree& tree, OBBTreeNode* prev, int depth); 28 28 virtual ~OBBTreeNode(); 29 29 … … 31 31 virtual inline const BoundingVolume* getBV() const { return (BoundingVolume*)this->bvElement; } 32 32 33 virtual void spawnBVTree(const modelInfo& modelInf, const int* triangleIndexes, unsignedint length);33 virtual void spawnBVTree(const modelInfo& modelInf, const int* triangleIndexes, int length); 34 34 35 35 virtual void collideWith(const BVTreeNode& treeNode, const WorldEntity& nodeA, const WorldEntity& nodeB) const; … … 37 37 void debug() const; 38 38 39 /** gets the id of the current child @return id of the child */ 40 inline const int getID() { return this->nextID++; } 39 41 40 42 private: 41 43 void calculateBoxAxis(OBB& box, const sVec3D* verticesList, unsigned int length); 42 44 43 void calculateBoxCovariance(OBB& box, const modelInfo& modelInf, const int* triangleIndexes, unsignedint length);44 void calculateBoxEigenvectors(OBB& box, const modelInfo& modelInf, const int* triangleIndexes, unsignedint length);45 void calculateBoxAxis(OBB& box, const modelInfo& modelInf, const int* triangleIndexes, unsignedint length);45 void calculateBoxCovariance(OBB& box, const modelInfo& modelInf, const int* triangleIndexes, int length); 46 void calculateBoxEigenvectors(OBB& box, const modelInfo& modelInf, const int* triangleIndexes, int length); 47 void calculateBoxAxis(OBB& box, const modelInfo& modelInf, const int* triangleIndexes, int length); 46 48 void forkBox(OBB& box); 47 49 … … 51 53 protected: 52 54 OBB* bvElement; //!< the obb element 55 OBBTreeNode* nodePrev; //!< ref to the previous (parent) tree node = NULL if first 53 56 OBBTreeNode* nodeLeft; //!< ref to the left tree node 54 57 OBBTreeNode* nodeRight; //!< ref to the right tree node … … 56 59 57 60 private: 58 unsigned int treeIndex; //!< Index number of the BV in the tree 61 int treeIndex; //!< Index number of the BV in the tree 62 int nextID; //!< the id of the next child 59 63 int depth; //!< the depth of the node in the tree 60 64 const OBBTree* obbTree; //!< reference to the obb tree
Note: See TracChangeset
for help on using the changeset viewer.