Changeset 5688 in orxonox.OLD for trunk/src/lib/collision_detection/obb_tree_node.h
- 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.h
r5684 r5688 28 28 virtual ~OBBTreeNode(); 29 29 30 virtual void spawnBVTree(const int depth, sVec3D *verticesList, constint length);30 virtual void spawnBVTree(const int depth, const sVec3D *verticesList, unsigned int length); 31 31 virtual void spawnBVTree(const int depth, const modelInfo& modInfo); 32 32 … … 42 42 43 43 private: 44 void calculateBoxCovariance(OBB* box, sVec3D* verticesList,int length);45 void calculateBoxEigenvectors(OBB* box, sVec3D* verticesList,int length);46 void calculateBoxAxis(OBB* box, sVec3D* verticesList,int length);44 void calculateBoxCovariance(OBB* box, const sVec3D* verticesList, unsigned int length); 45 void calculateBoxEigenvectors(OBB* box, const sVec3D* verticesList, unsigned int length); 46 void calculateBoxAxis(OBB* box, const sVec3D* verticesList, unsigned int length); 47 47 48 48 void calculateBoxCovariance(OBB* box, const modelInfo& modInfo); … … 62 62 private: 63 63 unsigned int treeIndex; //!< Index number of the BV in the tree 64 sVec3D*vertices; //!< pointer to the vertices data64 const sVec3D* vertices; //!< pointer to the vertices data 65 65 int numOfVertices; //!< number of vertices in vertices data 66 66 int depth; //!< the depth of the node in the tree 67 67 static OBBTree* obbTree; //!< reference to the obb tree 68 68 Plane* separationPlane; //!< the separation plane of the obb 69 sVec3D*sepPlaneCenter; //!< only needed to draw plane @todo: separationPlane drawing69 const sVec3D* sepPlaneCenter; //!< only needed to draw plane @todo: separationPlane drawing 70 70 int longestAxisIndex; //!< only needed to draw plane 71 71
Note: See TracChangeset
for help on using the changeset viewer.