Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 29, 2005, 6:01:26 PM (18 years ago)
Author:
patrick
Message:

collision_detection: some source reformat and function reorg

File:
1 edited

Legend:

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

    r5718 r5825  
    2121
    2222//! A class that represents a bounding volume tree
    23 class OBBTreeNode : public BVTreeNode {
     23class OBBTreeNode : public BVTreeNode
     24{
    2425
    2526
     
    2930
    3031    /*  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; }
     32    virtual inline const BoundingVolume* getBV() const
     33    {
     34      return (BoundingVolume*)this->bvElement;
     35    }
    3236
    3337    virtual void spawnBVTree(const sVec3D *verticesList, unsigned int length);
     
    4044
    4145  private:
    42     void calculateBoxEigenvectors(OBB& box, const sVec3D* verticesList, unsigned int length);
    4346    void calculateBoxAxis(OBB& box, const sVec3D* verticesList, unsigned int length);
    4447
     
    6265    const OBBTree*      obbTree;                    //!< reference to the obb tree
    6366
     67    const modelInfo*    modelInf;                   //!< pointer to the models modelInfo object
     68    const int*          triangleIndexes;            //!< indexes to the used model triangles
     69
    6470    const sVec3D*       vertices;                   //!< pointer to the vertices data
    6571    int                 numOfVertices;              //!< number of vertices in vertices data
Note: See TracChangeset for help on using the changeset viewer.