Changeset 6894 in orxonox.OLD for branches/cdmerge/src/lib/collision_detection/bounding_volume.cc
- Timestamp:
- Jan 31, 2006, 2:41:28 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cdmerge/src/lib/collision_detection/bounding_volume.cc
r5120 r6894 14 14 */ 15 15 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_COLLISION 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_COLLISION_DETECTION 17 17 18 18 #include "bounding_volume.h" 19 #include "vector.h"20 19 21 20 using namespace std; … … 27 26 BoundingVolume::BoundingVolume () 28 27 { 29 30 this->center = new Vector();31 this->bOrigVertices = true;32 this->vertices = NULL;28 this->setClassID(CL_BOUNDING_VOLUME, "BoundingVolume"); 29 this->modelInf = NULL; 30 this->triangleIndexes = NULL; 31 this->triangleIndexesLength = 0; 33 32 } 34 33 … … 40 39 BoundingVolume::~BoundingVolume () 41 40 { 42 // delete what has to be deleted here 43 delete this->center; 44 45 if( this->vertices && !this->bOrigVertices) 46 delete[] this->vertices; 41 if( this->triangleIndexes) 42 delete[] this->triangleIndexes; 47 43 }
Note: See TracChangeset
for help on using the changeset viewer.