Added better hollow calculations to ShapeBox and UtilBlock
This commit is contained in:
parent
296f304d29
commit
29a0ba565b
@ -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)));
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user