Changeset 4896 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- Jul 19, 2005, 9:10:16 PM (19 years ago)
- Location:
- orxonox/trunk/src/lib/graphics/spatial_separation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/spatial_separation/quadtree_node.cc
r4889 r4896 28 28 */ 29 29 QuadtreeNode::QuadtreeNode (sTriangleExt** triangles, int numTriangles, 30 const float* pVertices, int numVertices, Quadtree* quadtree) 30 const float* pVertices, int numVertices, 31 Quadtree* quadtree, QuadtreeNode* parent) 31 32 { 32 33 this->pTriangles = triangles; … … 36 37 this->quadtree = quadtree; 37 38 this->treeDepth = 0; 38 39 // this->pDimension = this->getDimension(); 39 this->parent = parent; 40 40 41 this->init(); 41 42 } … … 58 59 this->treeDepth = 0; 59 60 60 // this->pDimension = this->getDimension(this->pModelInfo);61 61 this->init(); 62 62 } … … 71 71 72 72 this->offset = 0.0f; 73 this->parent = NULL; 73 74 this->nodeA = NULL; 74 75 this->nodeB = NULL; … … 245 246 246 247 /* now propagate */ 247 this->nodeA = new QuadtreeNode(pTriA, lenA, this->pVertices, this->numVertices, this->quadtree );248 this->nodeB = new QuadtreeNode(pTriB, lenB, this->pVertices, this->numVertices, this->quadtree );249 this->nodeC = new QuadtreeNode(pTriC, lenC, this->pVertices, this->numVertices, this->quadtree );250 this->nodeD = new QuadtreeNode(pTriD, lenD, this->pVertices, this->numVertices, this->quadtree );248 this->nodeA = new QuadtreeNode(pTriA, lenA, this->pVertices, this->numVertices, this->quadtree, this); 249 this->nodeB = new QuadtreeNode(pTriB, lenB, this->pVertices, this->numVertices, this->quadtree, this); 250 this->nodeC = new QuadtreeNode(pTriC, lenC, this->pVertices, this->numVertices, this->quadtree, this); 251 this->nodeD = new QuadtreeNode(pTriD, lenD, this->pVertices, this->numVertices, this->quadtree, this); 251 252 } 252 253 -
orxonox/trunk/src/lib/graphics/spatial_separation/quadtree_node.h
r4887 r4896 21 21 public: 22 22 QuadtreeNode(sTriangleExt** triangles, int numTriangles, 23 const float* pVertices, int numVertices, Quadtree* quadtree); 23 const float* pVertices, int numVertices, 24 Quadtree* quadtree, QuadtreeNode* parent); 24 25 QuadtreeNode(modelInfo* pModelInfo); 25 26 virtual ~QuadtreeNode(); … … 36 37 Rectangle* getDimension(modelInfo* pModelInfo); 37 38 Rectangle* getDimension(); 39 40 41 protected: 42 QuadtreeNode* parent; //!< reference to the paren QuadtreeNode (NULL if rootnode) 43 QuadtreeNode* nodeA; //!< reference to the node A 44 QuadtreeNode* nodeB; //!< reference to the node B 45 QuadtreeNode* nodeC; //!< reference to the node C 46 QuadtreeNode* nodeD; //!< reference to the node D 38 47 39 48 private: … … 52 61 modelInfo* pModelInfo; //!< reference to the modelInfo of the object 53 62 Rectangle* pDimension; //!< pointer to the local rectangle properties 54 55 QuadtreeNode* nodeA; //!< reference to the node A56 QuadtreeNode* nodeB; //!< reference to the node B57 QuadtreeNode* nodeC; //!< reference to the node C58 QuadtreeNode* nodeD; //!< reference to the node D59 60 63 }; 61 64
Note: See TracChangeset
for help on using the changeset viewer.