Changeset 4819 in orxonox.OLD for orxonox/trunk/src/lib/graphics/spatial_separation/spatial_separation.cc
- Timestamp:
- Jul 7, 2005, 11:10:04 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/spatial_separation/spatial_separation.cc
r4810 r4819 18 18 #include "spatial_separation.h" 19 19 #include "abstract_model.h" 20 #include "quadtree.h" 20 21 21 22 using namespace std; … … 57 58 SpatialSeparation::~SpatialSeparation () 58 59 { 59 // delete what has to be deleted here60 60 } 61 62 63 /** 64 \brief creates a quadtree 65 \param model the model to do a quadtree on 66 \param minLength the minimal length of a quadtree node 67 \return the new quadtree 68 */ 69 Quadtree* SpatialSeparation::createQuadtree(AbstractModel* model, float minLength) 70 { 71 this->minLength = minLength; 72 73 } 74 75 76 /** 77 \brief creates a quadtree 78 \param model the model to do a quadtree on 79 \param minLength the minimal length of a quadtree node 80 \return the new quadtree 81 */ 82 Quadtree* SpatialSeparation::createQuadtree(AbstractModel* model, int treeDepth) 83 { 84 this->treeDepth = treeDepth; 85 } 86 87 88 /** 89 \brief creates a quadtree 90 \param model the model to do a quadtree on 91 \param minLength the minimal length of a quadtree node 92 \return the new quadtree 93 */ 94 Quadtree* SpatialSeparation::createQuadtree(AbstractModel* model) 95 { 96 this->quadtree = new Quadtree(model->getModelInfo()); 97 this->quadtree->separate(); 98 99 return this->quadtree; 100 } 101 102 103 /** 104 \brief gets the maximal dimension of a model 105 \param playerModel the model that this measurement is based on 106 \return the maximal dimension of the model 107 */ 108 float SpatialSeparation::getMaxDimension(AbstractModel* playerModel) 109 { 110 111 } 112 113 114
Note: See TracChangeset
for help on using the changeset viewer.