Advertisement
infogulch

Untitled

Aug 7th, 2012
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     def build(px, py, structure, default_color):
  2.  
  3.         pz = int(hmap.get(px,py)*63)
  4.  
  5.         for xyz, color in structure.iteritems():
  6.             x, y, z = xyz
  7.             x, y, z = x + px, y + py, z + pz
  8.             vxl.set_point(x, y, z, color or default_color) #if color is none, use default_color
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement