Wout12345

TheDestruction's layer by layer code

Apr 11th, 2015
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. # This is a short piece of Python code meant to get a list of layers (two tuples of coordinates indicating both corners of the layer) from a box. It was suggested by TheDestruc7i0n here: https://twitter.com/TheDestruc7i0n/status/586917736816758784
  2.  
  3. layers = []
  4. for tempy in xrange(-y, y):
  5. layers.append(((box.minx, tempy, box.minz), (box.maxx, tempy + 1, box.maxz)))
Advertisement
Add Comment
Please, Sign In to add comment