int Let3d::findgnt int  depth,
const Index3 &  path2Node
 

Definition at line 358 of file let3d.cpp.

References child(), depth(), and terminal().

Referenced by calgnext().

00359 {
00360   int cur = 0;  //cerr<<"GOOD "<<path(cur)<<"     ";
00361   Index3 leftpath(wntpath);
00362   while(depth(cur)<wntdepth && terminal(cur)==false) {
00363          int dif = wntdepth-depth(cur);
00364          int tmp = pow2(dif-1);
00365          Index3 choice( leftpath/tmp );
00366          leftpath -= choice*tmp;
00367          cur = child(cur, choice);       //cur = child(cur, IdxIter(0,2,true,choice) );  //cerr<<path(cur)<<"["<<choice<<" "<<tmp<<"]"<<"     ";
00368   }  //cerr<<endl;
00369   return cur;
00370 }


Generated on Sun Dec 4 19:24:40 2005 for fmm3d by  doxygen 1.4.5