Esempio n. 1
0
    public static IEnumerable <(int x, int y, int z)> GetVoxelsInBounds(this IVoxelBounds3 bounds, IVoxelOrientation orientation)
    {
        var(min, max) = bounds.GetMinAndMax(orientation);

        for (int x = min.x; x <= max.x; x++)
        {
            for (int y = min.y; y <= max.y; y++)
            {
                for (int z = min.z; z <= max.z; z++)
                {
                    yield return(x, y, z);
                }
            }
        }
    }
Esempio n. 2
0
 public IntersectionVoxelBounds3(IVoxelBounds3 a, IVoxelBounds3 b)
 {
     this.a = a;
     this.b = b;
 }
 public UnionVoxelBounds3(IVoxelBounds3 a, IVoxelBounds3 b)
 {
     this.a = a;
     this.b = b;
 }