- Timestamp:
- Jun 7, 2005, 6:10:16 PM (19 years ago)
- Location:
- orxonox/trunk/src/lib/collision_detection
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/collision_detection/bounding_volume.h
r4541 r4542 22 22 virtual ~BoundingVolume(); 23 23 24 virtual void createBV() = NULL;25 26 24 inline const Vector* getCenter() const { return this->center; } 27 25 -
orxonox/trunk/src/lib/collision_detection/bv_tree_node.h
r4541 r4542 14 14 class sVec3D; 15 15 class BVTree; 16 template<class T> class tList; 16 17 17 18 //! A class that represents a bounding volume tree … … 22 23 virtual ~BVTreeNode(); 23 24 24 virtual void spawnBVTree( int depth) = NULL;25 virtual void spawnBVTree(const int depth, tList<sVec3D> *verticesList) = NULL; 25 26 26 27 virtual BoundingVolume* getBV(int index) const = NULL; -
orxonox/trunk/src/lib/collision_detection/obb.cc
r4541 r4542 41 41 42 42 43 void OBB::createBV() const44 {}45 46 43 47 44 void OBB::mergeWith(const BoundingVolume &bv) -
orxonox/trunk/src/lib/collision_detection/obb.h
r4541 r4542 20 20 virtual ~OBB(); 21 21 22 virtual void createBV() const;23 22 24 23 inline const Vector* getAxis () const { return this->axis; } -
orxonox/trunk/src/lib/collision_detection/obb_tree.cc
r4541 r4542 44 44 void OBBTree::spawnBVTree(int depth) 45 45 { 46 float area[this->numberOfVertices]; //!< surface area of the i'th triangle of the convex hull 47 float areaTotal; //!< surface area of the entire convex hull 48 float centroid[this->numberOfVertices]; //!< centroid of the i'th convex hull 49 50 51 //OBB obb(); 52 float muX, muY, muZ; 53 for(int i = 0; i < this->numberOfVertices; ++i) 54 { 55 56 } 46 57 47 } 58 48 -
orxonox/trunk/src/lib/collision_detection/obb_tree_node.cc
r4541 r4542 17 17 18 18 #include "obb_tree_node.h" 19 #include "list.h" 20 #include "obb.h" 19 21 20 22 using namespace std; … … 41 43 42 44 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 */ 51 void 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 66 void OBBTreeNode::collideWith(const BVTree &tree) 67 {} 68 69 70 void OBBTreeNode::drawBV(int currentDepth, const int depth) const 71 {} 72 73 74 void OBBTreeNode::drawBVPolygon(int currentDepth, const int depth) const 75 {} 76 77 78 void OBBTreeNode::drawBVBlended(int currentDepth, const int depth) const 79 {} -
orxonox/trunk/src/lib/collision_detection/obb_tree_node.h
r4541 r4542 22 22 virtual ~OBBTreeNode(); 23 23 24 virtual void spawnBVTree( int depth);24 virtual void spawnBVTree(const int depth, tList<sVec3D> *verticesList); 25 25 26 26 BoundingVolume* getBV(int index) const { return this->bvElement; }
Note: See TracChangeset
for help on using the changeset viewer.