Exemple #1
0
    def test_normal(self):
        for ct in self.ctypeS:
            print(ct)
            l = Landmark(ctype=ct)

            # check default
            numpy.testing.assert_equal(l.normal, [0,0,0])

            l.normal = [0,1,0]
            numpy.testing.assert_equal(l.normal, [0,1,0])
Exemple #2
0
    def test_normal(self):
        for ct in self.C_TYPES:
            print(ct)
            l = Landmark(c_type=ct)

            # check default
            numpy.testing.assert_equal(l.normal, [[0], [0], [0]])

            l.normal = [[0], [1], [0]]
            numpy.testing.assert_equal(l.normal, [[0], [1], [0]])