Changeset 4896 in orxonox.OLD for orxonox/trunk/src/lib/graphics/spatial_separation/quadtree_node.cc
- Timestamp:
- Jul 19, 2005, 9:10:16 PM (19 years ago)
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.