- Timestamp:
- Jun 7, 2005, 5:47:07 PM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 4 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/defs/class_list.h
r4513 r4541 88 88 CL_COLLISION, 89 89 CL_BV_TREE, 90 CL_BV_TREE_NODE, 90 91 CL_OBB_TREE, 92 CL_OBB_TREE_NODE, 91 93 CL_BOUNDING_VOLUME, 92 94 CL_OBB, -
orxonox/trunk/src/lib/collision_detection/Makefile.am
r4539 r4541 8 8 obb.cc \ 9 9 obb_tree.cc \ 10 obb_tree_node.cc \ 10 11 bv_tree.cc \ 12 bv_tree_node.cc \ 11 13 bounding_volume.cc \ 12 14 bounding_sphere.cc … … 19 21 obb.h \ 20 22 obb_tree.h \ 23 obb_tree_node.h \ 21 24 bv_tree.h \ 25 bv_tree_node.h \ 22 26 bounding_volume.h \ 23 27 bounding_sphere.h -
orxonox/trunk/src/lib/collision_detection/Makefile.in
r4539 r4541 55 55 libORXcd_a_LIBADD = 56 56 am_libORXcd_a_OBJECTS = cd_engine.$(OBJEXT) collision.$(OBJEXT) \ 57 obb.$(OBJEXT) obb_tree.$(OBJEXT) bv_tree.$(OBJEXT) \ 57 obb.$(OBJEXT) obb_tree.$(OBJEXT) obb_tree_node.$(OBJEXT) \ 58 bv_tree.$(OBJEXT) bv_tree_node.$(OBJEXT) \ 58 59 bounding_volume.$(OBJEXT) bounding_sphere.$(OBJEXT) 59 60 libORXcd_a_OBJECTS = $(am_libORXcd_a_OBJECTS) … … 63 64 @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/bounding_sphere.Po \ 64 65 @AMDEP_TRUE@ ./$(DEPDIR)/bounding_volume.Po \ 65 @AMDEP_TRUE@ ./$(DEPDIR)/bv_tree.Po ./$(DEPDIR)/cd_engine.Po \ 66 @AMDEP_TRUE@ ./$(DEPDIR)/collision.Po ./$(DEPDIR)/obb.Po \ 67 @AMDEP_TRUE@ ./$(DEPDIR)/obb_tree.Po 66 @AMDEP_TRUE@ ./$(DEPDIR)/bv_tree.Po ./$(DEPDIR)/bv_tree_node.Po \ 67 @AMDEP_TRUE@ ./$(DEPDIR)/cd_engine.Po ./$(DEPDIR)/collision.Po \ 68 @AMDEP_TRUE@ ./$(DEPDIR)/obb.Po ./$(DEPDIR)/obb_tree.Po \ 69 @AMDEP_TRUE@ ./$(DEPDIR)/obb_tree_node.Po 68 70 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ 69 71 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) … … 191 193 obb.cc \ 192 194 obb_tree.cc \ 195 obb_tree_node.cc \ 193 196 bv_tree.cc \ 197 bv_tree_node.cc \ 194 198 bounding_volume.cc \ 195 199 bounding_sphere.cc … … 200 204 obb.h \ 201 205 obb_tree.h \ 206 obb_tree_node.h \ 202 207 bv_tree.h \ 208 bv_tree_node.h \ 203 209 bounding_volume.h \ 204 210 bounding_sphere.h … … 254 260 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bounding_volume.Po@am__quote@ 255 261 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bv_tree.Po@am__quote@ 262 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bv_tree_node.Po@am__quote@ 256 263 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cd_engine.Po@am__quote@ 257 264 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/collision.Po@am__quote@ 258 265 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/obb.Po@am__quote@ 259 266 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/obb_tree.Po@am__quote@ 267 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/obb_tree_node.Po@am__quote@ 260 268 261 269 .cc.o: -
orxonox/trunk/src/lib/collision_detection/bounding_volume.h
r4533 r4541 12 12 class sVect3D; 13 13 class Vector; 14 template<class T> class tList; 15 14 16 15 17 //! An abstract class representing a bounding volume … … 20 22 virtual ~BoundingVolume(); 21 23 24 virtual void createBV() = NULL; 25 22 26 inline const Vector* getCenter() const { return this->center; } 23 inline const int getIndex() { return this->treeIndex; }24 27 25 virtual sVect3D* getVertices() const = NULL;28 virtual tList<sVect3D>* getVertices() const = NULL; 26 29 virtual void mergeWith(const BoundingVolume &bv) = NULL; 27 30 … … 34 37 Vector* center; //!< Center point of box 35 38 36 unsigned int treeIndex; //!< Index number of the BV in the tree39 tList<sVect3D>* verticesBuffer; //!< if CD_STORE_VERTICES enabled, this is the place, where the vert. will be sotred 37 40 }; 38 41 -
orxonox/trunk/src/lib/collision_detection/cd_engine.h
r4526 r4541 22 22 CD_DEBUG_DRAW_BLENDED = 1<<2, 23 23 CD_DEBUG_DRAW_HIT_BV = 1<<3, 24 CD_DEBUG_VERBOSE = 1<<4 24 CD_DEBUG_VERBOSE = 1<<4, 25 26 CD_STORE_VERTICES = 1<<5 25 27 }; 26 28 -
orxonox/trunk/src/lib/collision_detection/obb.cc
r4531 r4541 17 17 18 18 #include "obb.h" 19 #include "list.h" 19 20 20 21 using namespace std; … … 40 41 41 42 42 sVect3D* OBB::getVertices() const43 void OBB::createBV() const 43 44 {} 44 45 -
orxonox/trunk/src/lib/collision_detection/obb.h
r4531 r4541 11 11 #include "bounding_volume.h" 12 12 13 template<class T> class tList; 13 14 14 15 //! A class representing an extended bounding volume tree: an obb tree … … 19 20 virtual ~OBB(); 20 21 22 virtual void createBV() const; 23 21 24 inline const Vector* getAxis () const { return this->axis; } 22 25 inline const sVect3D* getHalfLength() const { return this->halfLength; } 23 26 24 virtual sVect3D* getVertices() const;27 virtual tList<sVect3D>* getVertices() const { return this->verticesBuffer; } 25 28 virtual void mergeWith(const BoundingVolume &bv); 26 29 -
orxonox/trunk/src/lib/collision_detection/obb_tree.cc
r4533 r4541 44 44 void OBBTree::spawnBVTree(int depth) 45 45 { 46 OBB obb(); 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(); 47 52 float muX, muY, muZ; 48 53 for(int i = 0; i < this->numberOfVertices; ++i)
Note: See TracChangeset
for help on using the changeset viewer.