Lines Matching refs:cur
61 object *cur; in globalbound() local
73 cur = *rootlist; in globalbound()
74 while (cur != nullptr) { /* Go! */ in globalbound()
82 cur->methods->bbox((void *)cur, &min, &max); in globalbound()
92 cur = (object *)cur->nextobj; in globalbound()
112 object *cur; /* counts the number of objects on a list */ in countobj() local
116 cur = root; in countobj()
118 while (cur != nullptr) { in countobj()
119 cur = (object *)cur->nextobj; in countobj()
126 object *cur, *tmp; in movenextobj() local
132 cur = (object *)thisobj->nextobj; /* the object to be moved */ in movenextobj()
133 thisobj->nextobj = cur->nextobj; /* link around the moved obj */ in movenextobj()
135 cur->nextobj = tmp; /* attach root to cur */ in movenextobj()
136 *root = cur; /* make cur, the new root */ in movenextobj()
142 object *cur; in octreespace() local
208 cur = *rootlist; in octreespace()
209 while (cur != nullptr) { in octreespace()
210 if (objinside((object *)cur->nextobj, &cmin1, &cmax1)) { in octreespace()
211 movenextobj(cur, &box1->objlist); in octreespace()
213 else if (objinside((object *)cur->nextobj, &cmin2, &cmax2)) { in octreespace()
214 movenextobj(cur, &box2->objlist); in octreespace()
216 else if (objinside((object *)cur->nextobj, &cmin3, &cmax3)) { in octreespace()
217 movenextobj(cur, &box3->objlist); in octreespace()
219 else if (objinside((object *)cur->nextobj, &cmin4, &cmax4)) { in octreespace()
220 movenextobj(cur, &box4->objlist); in octreespace()
222 else if (objinside((object *)cur->nextobj, &cmin5, &cmax5)) { in octreespace()
223 movenextobj(cur, &box5->objlist); in octreespace()
225 else if (objinside((object *)cur->nextobj, &cmin6, &cmax6)) { in octreespace()
226 movenextobj(cur, &box6->objlist); in octreespace()
228 else if (objinside((object *)cur->nextobj, &cmin7, &cmax7)) { in octreespace()
229 movenextobj(cur, &box7->objlist); in octreespace()
231 else if (objinside((object *)cur->nextobj, &cmin8, &cmax8)) { in octreespace()
232 movenextobj(cur, &box8->objlist); in octreespace()
236 cur = (object *)cur->nextobj; in octreespace()
242 bndbox *cur, *old; in octreespace() local
244 cur = box2; in octreespace()
245 if (countobj(cur->objlist) > 0) { in octreespace()
246 old->nextobj = cur; in octreespace()
247 globalbound(&cur->objlist, &cur->min, &cur->max); in octreespace()
248 old = cur; in octreespace()
250 cur = box3; in octreespace()
251 if (countobj(cur->objlist) > 0) { in octreespace()
252 old->nextobj = cur; in octreespace()
253 globalbound(&cur->objlist, &cur->min, &cur->max); in octreespace()
254 old = cur; in octreespace()
256 cur = box4; in octreespace()
257 if (countobj(cur->objlist) > 0) { in octreespace()
258 old->nextobj = cur; in octreespace()
259 globalbound(&cur->objlist, &cur->min, &cur->max); in octreespace()
260 old = cur; in octreespace()
262 cur = box5; in octreespace()
263 if (countobj(cur->objlist) > 0) { in octreespace()
264 old->nextobj = cur; in octreespace()
265 globalbound(&cur->objlist, &cur->min, &cur->max); in octreespace()
266 old = cur; in octreespace()
268 cur = box6; in octreespace()
269 if (countobj(cur->objlist) > 0) { in octreespace()
270 old->nextobj = cur; in octreespace()
271 globalbound(&cur->objlist, &cur->min, &cur->max); in octreespace()
272 old = cur; in octreespace()
274 cur = box7; in octreespace()
275 if (countobj(cur->objlist) > 0) { in octreespace()
276 old->nextobj = cur; in octreespace()
277 globalbound(&cur->objlist, &cur->min, &cur->max); in octreespace()
278 old = cur; in octreespace()
280 cur = box8; in octreespace()
281 if (countobj(cur->objlist) > 0) { in octreespace()
282 old->nextobj = cur; in octreespace()
283 globalbound(&cur->objlist, &cur->min, &cur->max); in octreespace()
284 old = cur; in octreespace()