Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 7, 2005, 6:10:16 PM (19 years ago)
Author:
patrick
Message:

some more structural work and start of spawn tree function

File:
1 edited

Legend:

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

    r4541 r4542  
    1717
    1818#include "obb_tree_node.h"
     19#include "list.h"
     20#include "obb.h"
    1921
    2022using namespace std;
     
    4143
    4244
     45
     46/**
     47   \brief creates a new BVTree or BVTree partition
     48   \param depth: the depth of the tree
     49   \param verticesList: the list of vertices of the object - each vertices triple is interpreted as a triangle
     50*/
     51void OBBTreeNode::spawnBVTree(const int depth, tList<sVec3D> *verticesList)
     52{
     53  float     area[verticesList->getSize()];           //!< surface area of the i'th triangle of the convex hull
     54  float     areaTotal;                               //!< surface area of the entire convex hull
     55  float     centroid[verticesList->getSize()];       //!< centroid of the i'th convex hull 
     56  OBB*      obb = new OBB();                         //!< the new obb to add
     57
     58  /* fist compute all the convex hull particles */
     59  for(int i = 0; i < verticesList->getSize(); ++i)
     60    {
     61     
     62    }
     63}
     64
     65
     66void OBBTreeNode::collideWith(const BVTree &tree)
     67{}
     68
     69
     70void OBBTreeNode::drawBV(int currentDepth, const int depth) const
     71{}
     72
     73
     74void OBBTreeNode::drawBVPolygon(int currentDepth, const int depth) const
     75{}
     76
     77
     78void OBBTreeNode::drawBVBlended(int currentDepth, const int depth) const
     79{}
Note: See TracChangeset for help on using the changeset viewer.