internal override void SetCuboid(int size, Cuboid cuboid, T value) { if (Value.Equals(value)) { return; } if (cuboid.IsIntersecting(size)) { Cuboid i = cuboid.FindIntersection(size); if (i.X == 0 && i.Y == 0 && i.Z == 0 && i.Width == i.Height && i.Height == i.Depth && i.Depth == size) { Value = value; } else if (i.Volume != 0) { Partition().SetCuboid(size, cuboid, value); } } }