//============================================================ // <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); } } }
//============================================================ // <T>获得所有有效节点。</T> //============================================================ public void FilterLeaf(FOctreeNodes leafs) { leafs.Clear(); _root.FilterLeaf(leafs); }