Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5870 in orxonox.OLD for branches/collision_detection


Ignore:
Timestamp:
Dec 2, 2005, 12:30:55 PM (19 years ago)
Author:
patrick
Message:

collision_detection: getting rid of the old vertices based structure

Location:
branches/collision_detection/src/lib/collision_detection
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/collision_detection/src/lib/collision_detection/bounding_volume.h

    r5706 r5870  
    2323
    2424    inline const Vector& getCenter() const { return this->center; }
     25    inline const modelInfo* getModelInfo() const { return this->modelInf; }
    2526
    26     const sVec3D* getVertices() const { return this->vertices; }
    2727    virtual void mergeWith(const BoundingVolume &bv) = 0;
    2828
     
    3434    Vector              center;                     //!< Center point of box
    3535
    36     const sVec3D*       vertices;                   //!< if CD_STORE_VERTICES enabled, this is the place, where the vert. will be sotred
    37     int                 numOfVertices;              //!< number of vertices in the vertices buffer
    3836    const modelInfo*    modelInf;                   //!< Reference to the model's ModelInfo
    3937    const int*          triangleIndexes;            //!< Array with the triangle indexes in modelInfo
    40     unsigned int        numTriangles;               //!< Number of triangles in this BV
     38    int                 triangleIndexesLength;      //!< length of the indexes array
    4139};
    4240
  • branches/collision_detection/src/lib/collision_detection/obb_tree_node.cc

    r5869 r5870  
    127127  this->bvElement->modelInf = &modelInf;
    128128  this->bvElement->triangleIndexes = triangleIndexes;
    129   this->bvElement->numTriangles = length;
     129  this->bvElement->triangleIndexesLength = length;
    130130
    131131  /* create the boxes in three steps */
     
    605605
    606606
    607   //for (element = nameList.begin(); element != nameList.end(); element++)
    608 //   iterator = partition2.getIterator();
    609 //   element = iterator->firstElement();
    610607
    611608  for(element = partition2.begin(), index = 0; element != partition2.end(); element++, index++)
Note: See TracChangeset for help on using the changeset viewer.