Added better hollow calculations to ShapeBox and UtilBlock

This commit is contained in:
xGamingDudex 2016-05-15 17:05:11 +02:00
parent 296f304d29
commit 29a0ba565b
2 changed files with 2 additions and 11 deletions

View File

@ -60,9 +60,7 @@ public class ShapeBox extends Shape
{
if(hollow)
{
if(ix != 0 && ix != xm) continue;
if(iy != 0 && iy != ym) continue;
if(iz != 0 && iz != zm) continue;
if(!(ix == 0 || ix == xm-1 || iy == 0 || iy == ym-1 || iz == 0 || iz == zm-1)) continue;
}
_points.add(x.clone().multiply(ix).add(y.clone().multiply(iy)).add(z.clone().multiply(iz)));
}

View File

@ -629,14 +629,7 @@ public class UtilBlock
if(hollow)
{
if(
(x != xmin && x != xmax) &&
(y != ymin && y != ymax) &&
(z != zmin && z != zmax)
)
{
continue;
}
if(!(x == xmin || x == xmax || y == ymin || y == ymax || z == zmin || z == zmax)) continue;
}
if(!walls)