示例#1
0
        public OctreeEnumerator(Octree <T> octree, Face face)
        {
            myOriginal = octree;
            Face       = face;

            if (Face.HasNone)
            {
                myValidOctants = Octant.All;
            }
            else
            {
                for (int i = 0, j = 0; i < 8; ++i)
                {
                    if (Octant.All[i].Faces.HasFace(face))
                    {
                        myValidOctants[j++] = Octant.All[i];
                    }
                }
            }

            Reset();
        }
示例#2
0
 public OctreeEnumerator(Octree <T> octree)
     : this(octree, Face.None)
 {
 }