Lines Matching refs:newnode
290 Ocnode *newnode;
291 newnode = ocnodeNew(pool);
292 newnode->rs = node1->rs + node2->rs;
293 newnode->gs = node1->gs + node2->gs;
294 newnode->bs = node1->bs + node2->bs;
295 newnode->weight = node1->weight + node2->weight;
296 { *ref = newnode; newnode->ref = ref; newnode->parent = parent; }
299 //merge the nodes in <newnode>
300 newnode->width = node1->width; // == node2->width
301 newnode->rgb = node1->rgb; // == node2->rgb
302 newnode->nchild = 0;
303 newnode->nleaf = 0;
305 newnode->nleaf = 1;
309 newnode->nleaf +=
310 octreeMerge(pool, newnode, &newnode->child[i],
313 return newnode->nleaf;
317 //use <newnode> as a fork node with children <node1> and <node2>
325 newnode->width = newwidth;
326 newnode->rgb = rgb1; // == rgb2
327 newnode->nchild = 2;
328 newnode->nleaf = node1->nleaf + node2->nleaf;
331 node1->parent = newnode;
332 node1->ref = &newnode->child[i1];
333 newnode->child[i1] = node1;
334 node2->parent = newnode;
335 node2->ref = &newnode->child[i2];
336 newnode->child[i2] = node2;
337 return newnode->nleaf;