Changeset 5882 in orxonox.OLD for branches/collision_detection/src/lib/collision_detection/obb_tree_node.h
- Timestamp:
- Dec 3, 2005, 1:31:23 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/collision_detection/src/lib/collision_detection/obb_tree_node.h
r5825 r5882 11 11 12 12 13 14 // FORWARD DECLARATION 13 // forward declarations 15 14 class BoundingVolume; 16 15 class OBB; … … 18 17 class Plane; 19 18 class PNode; 20 //struct sVec3D; 19 21 20 22 21 //! A class that represents a bounding volume tree … … 29 28 virtual ~OBBTreeNode(); 30 29 31 /* this function returns the bounding volume of this tree node @return: returns the BV */ 32 virtual inline const BoundingVolume* getBV() const 33 { 34 return (BoundingVolume*)this->bvElement; 35 } 30 /** 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; } 36 32 37 virtual void spawnBVTree(const sVec3D *verticesList, unsigned int length);38 33 virtual void spawnBVTree(const modelInfo& modelInf, const int* triangleIndexes, unsigned int length); 39 34 … … 68 63 const int* triangleIndexes; //!< indexes to the used model triangles 69 64 70 const sVec3D* vertices; //!< pointer to the vertices data71 int numOfVertices; //!< number of vertices in vertices data72 65 Plane separationPlane; //!< the separation plane of the obb 73 const sVec3D*sepPlaneCenter; //!< only needed to draw plane66 sVec3D sepPlaneCenter; //!< only needed to draw plane 74 67 int longestAxisIndex; //!< only needed to draw plane 75 68 76 69 /* tmp saving place for obb variables */ 77 sVec3D* tmpVert1; //!< pointer to the vert data of obbox1 78 sVec3D* tmpVert2; //!< pointer to the vert data of obbox1 79 int tmpLen1; //!< len vert data obbox1 80 int tmpLen2; //!< len vert data obbox2 81 82 static float** coMat; 83 static float** eigvMat; 84 static float* eigvlMat; 85 static int* rotCount; 86 70 int* triangleIndexList1; //!< pointer to the vert data of obbox1 71 int* triangleIndexList2; //!< pointer to the vert data of obbox1 72 int triangleIndexLength1; //!< len vert data obbox1 73 int triangleIndexLength2; //!< len vert data obbox2 87 74 }; 88 75
Note: See TracChangeset
for help on using the changeset viewer.