Пример #1
0
 public void Fill(T voxel)
 {
     if (IsUncompressed)
     {
         Compressed.Clear();
         for (int i = 0; i < Uncompressed.Length; ++i)
         {
             Uncompressed[i] = voxel;
         }
     }
     else
     {
         Compressed.Clear();
         long size = Bounds.Width * Bounds.Height * Bounds.Depth;
         for (int i = 0; i < size; ++i)
         {
             Compressed.Add(voxel);
         }
     }
 }