Пример #1
0
 def test_face_neg_x(self):
     b = Block(Vector(0,0,0), 4, 0)
     self.failUnlessEqual(b.get_faces(Vector(-2,0,.5))[0][0], 4)
Пример #2
0
 def test_face_pos_x(self):
     b = Block(Vector(0, 0, 0), 4, 0)
     self.failUnlessEqual(b.get_faces(Vector(2,0,0.5))[0][0], 5)
Пример #3
0
 def test_face_pos_z(self):
     b = Block(Vector(0, 0, 0), 4, 0)
     self.failUnlessEqual(b.get_faces(Vector(0.5,0,2))[0][0], 3)