Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4813 in orxonox.OLD


Ignore:
Timestamp:
Jul 7, 2005, 2:44:19 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: some smaller quadtree changes, changes in the OBBTreeNode deconstructors

Location:
orxonox/trunk/src/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/collision_detection/obb_tree_node.cc

    r4746 r4813  
    7979OBBTreeNode::~OBBTreeNode ()
    8080{
    81   // delete what has to be deleted here
     81
     82  delete [] this->vertices;
     83
     84  delete this->bvElement;
     85  delete this->nodeLeft;
     86  delete this->nodeRight;
    8287}
    8388
  • orxonox/trunk/src/lib/graphics/spatial_separation/quadtree_node.cc

    r4812 r4813  
    2323/**
    2424   \brief standard constructor
    25    \todo this constructor is not jet implemented - do it
    2625*/
    27 QuadtreeNode::QuadtreeNode ()
     26QuadtreeNode::QuadtreeNode (sTriangleExt* triangles, int numTriangles, Quadtree* quadtree)
    2827{
    2928   this->setClassID(CL_QUADTREE_NODE, "QuadtreeNode");
    30 
    3129}
    3230
  • orxonox/trunk/src/lib/graphics/spatial_separation/quadtree_node.h

    r4812 r4813  
    1212
    1313// FORWARD DEFINITION
     14class Quadtree;
    1415class QuadtreeNode;
    1516
     
    1819
    1920 public:
    20   QuadtreeNode();
     21  QuadtreeNode(sTriangleExt* triangles, int numTriangles, Quadtree* quadtree);
    2122  virtual ~QuadtreeNode();
    2223
     
    2728
    2829 private:
     30   Quadtree*                       quadtree;           //!< reference to the quadtree
    2931   Vector                          center;             //!< center coordinate of the quadtree node - relative coordinates in model space(!)
    3032   float                           axisLength;         //!< axis length of the quadtree
    3133   float                           maxHeigth;          //!< max height of the model in the quadtree
    3234
    33    sTriangleExt*                   triangles;
    34    unsigned int                    numTriangles;
     35   sTriangleExt*                   triangles;          //!< reference to the triangles of the node
     36   unsigned int                    numTriangles;       //!< number of triangles of the Node
     37   modelInfo*                      pModelInfo;         //!< reference to the modelInfo of the object
    3538
    3639   QuadtreeNode*                   nodeA;              //!< reference to the node A
Note: See TracChangeset for help on using the changeset viewer.