Ejemplo n.º 1
0
 //============================================================
 // <T>获得使用节点集合。</T>
 //============================================================
 public void FilterLeaf(FOctreeNodes leafs)
 {
     if (_pixelCount > 0)
     {
         leafs.Push(this);
     }
     for (int index = 0; index < 8; index++)
     {
         FOctreeNode node = _nodes[index];
         if (null != node)
         {
             node.FilterLeaf(leafs);
         }
     }
 }
Ejemplo n.º 2
0
 //============================================================
 // <T>获得所有有效节点。</T>
 //============================================================
 public void FilterLeaf(FOctreeNodes leafs)
 {
     leafs.Clear();
     _root.FilterLeaf(leafs);
 }