Exemple #1
0
 def test_movePoint(self):
     c = (0, 0, 0)
     t = Triangle([0, 0, 10, 0, 10, 10], c, 255)
     # 0 10 10
     # 0  0 10
     t.move_point(0, 2, 2)
     t.move_point(1, 23, -6)
     t.move_point(2, -14, 42)
     self.assertEqual(t.coordinates, [2, 2, 33, -6, -4, 52])
Exemple #2
0
 def test_movePoint(self):
     c = (0, 0, 0)
     t = Triangle([0, 0, 10, 0, 10, 10], c, 255)
     # 0 10 10
     # 0  0 10
     t.move_point(0, 2, 2)
     t.move_point(1, 23, -6)
     t.move_point(2, -14, 42)
     self.assertEqual(t.coordinates, [2, 2, 33, -6, -4, 52])