Exemple #1
0
 def earth(self):
     earth = Earth()
     for t in self.tiles.itervalues():
         elevation = earth.sample(t.lat, t.lon) / 900.0
         if elevation < 0:
             elevation = 0
         t.bottom = -1
         t.layers = [Layer({ 'type': 'S', 'toughness': 0.5 }, elevation + 1)]
         t.limit()
     self.erode()
Exemple #2
0
 def earth(self):
     earth = Earth()
     for t in self.tiles.itervalues():
         elevation = earth.sample(t.lat, t.lon) / 900.0
         if elevation < 0:
             elevation = 0
         t.bottom = -1
         t.layers = [Layer('S', elevation + 1)]
         t.limit()
     self.classify()