Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2005, 1:31:23 AM (18 years ago)
Author:
patrick
Message:

collision_detection: very much work on the cd engine, now the obbs do assemble again, but not yet correctly. Much more debug work to come..

File:
1 edited

Legend:

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

    r5825 r5882  
    1111
    1212
    13 
    14 // FORWARD DECLARATION
     13// forward declarations
    1514class BoundingVolume;
    1615class OBB;
     
    1817class Plane;
    1918class PNode;
    20 //struct sVec3D;
     19
    2120
    2221//! A class that represents a bounding volume tree
     
    2928    virtual ~OBBTreeNode();
    3029
    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; }
    3632
    37     virtual void spawnBVTree(const sVec3D *verticesList, unsigned int length);
    3833    virtual void spawnBVTree(const modelInfo& modelInf, const int* triangleIndexes, unsigned int length);
    3934
     
    6863    const int*          triangleIndexes;            //!< indexes to the used model triangles
    6964
    70     const sVec3D*       vertices;                   //!< pointer to the vertices data
    71     int                 numOfVertices;              //!< number of vertices in vertices data
    7265    Plane               separationPlane;            //!< the separation plane of the obb
    73     const sVec3D*       sepPlaneCenter;             //!< only needed to draw plane
     66    sVec3D              sepPlaneCenter;             //!< only needed to draw plane
    7467    int                 longestAxisIndex;           //!< only needed to draw plane
    7568
    7669    /* 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
    8774};
    8875
Note: See TracChangeset for help on using the changeset viewer.