Esempio n. 1
0
        //============================================================
        // <T>获得使用节点集合。</T>
        //============================================================
        public int LeafCount()
        {
            int count = 0;

            if (_pixelCount > 0)
            {
                count++;
            }
            for (int index = 0; index < 8; index++)
            {
                FOctreeNode node = _nodes[index];
                if (null != node)
                {
                    count += node.LeafCount();
                }
            }
            return(count);
        }
Esempio n. 2
0
 //============================================================
 // <T>获得颜色总数。</T>
 //
 // @param color 颜色总数
 //============================================================
 public int GetColorCount()
 {
     return(_root.LeafCount());
 }