Expand transform bounds when not on a block edge.

This commit is contained in:
David Vierra 2015-10-09 17:59:29 -10:00
parent 9ec45459c7
commit 35d7317eda

View File

@ -36,6 +36,13 @@ def transformBounds(bounds, matrix):
maxy = max(corners[:, 1])
maxz = max(corners[:, 2])
if maxx % 1:
maxx += 1
if maxy % 1:
maxy += 1
if maxz % 1:
maxz += 1
newbox = BoundingBox(origin=Vector(minx, miny, minz).intfloor(),
maximum=Vector(maxx, maxy, maxz).intfloor())
return newbox