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(); }
public OctreeEnumerator(Octree <T> octree) : this(octree, Face.None) { }