Beispiel #1
0
 def test_applyOrientation01(self):
     """applyOrientation01 -- Q, T, O combined"""
     state = StateToCoords(self.known_points, tolist=1)
     result = state.applyOrientation(quat=(1.0, 0.0, 0.0, 90.0),
                                     trans=(10., 10., 10.),
                                     origin=(1., 0., 1.))
     expected = [[11., 9., 11.], [11., 10., 11.], [11., 10., 12.],
                 [10., 10., 11.], [10., 11., 11.], [10., 11., 12.],
                 [10., 12., 12.], [11., 12., 12.], [11., 12., 13.],
                 [11., 13., 12.]]
     self.assertArrayEqual(expected, result)
 def test_applyOrientation01(self):
     """applyOrientation01 -- Q, T, O combined"""
     state = StateToCoords(self.known_points, tolist=1)
     result = state.applyOrientation( quat=(1.0, 0.0, 0.0, 90.0),
                                      trans= (10., 10., 10.),
                                      origin=(1., 0., 1.))
     expected = [[11.,  9., 11.],
                 [11., 10., 11.],
                 [11., 10., 12.],
                 [10., 10., 11.],
                 [10., 11., 11.],
                 [10., 11., 12.],
                 [10., 12., 12.],
                 [11., 12., 12.],
                 [11., 12., 13.],
                 [11., 13., 12.]]
     self.assertArrayEqual(expected, result)
Beispiel #3
0
 def test_applyOrientation00(self):
     """applyOrientation00 -- random pts with defaults"""
     state = StateToCoords(self.random_points, tolist=1)
     self.assertEqual(self.random_points, state.applyOrientation())
 def test_applyOrientation00(self):
     """applyOrientation00 -- random pts with defaults"""
     state = StateToCoords(self.random_points, tolist=1)
     self.assertEqual(self.random_points, state.applyOrientation())