def test_center(self): s1 = cm.Vertex((1.0, 2.0, 3.0)) self.assert_(close(s1.center(), (1.0, 2.0, 3.0)))
def test_bounds(self): s1 = cm.Vertex((1.0, 2.0, 3.0)) self.assert_(close(s1.bounds(), (1.0, 2.0, 3.0, 1.0, 2.0, 3.0)))
def tolerance(self): s1 = cm.Vertex((1.0, 2.0, 3.0)) self.assert_(close(s1.tolerance(), 1e-7, eps=1e-9))
def test_dump(self): s1 = cm.Vertex((1.0, 2.0, 3.0)) s1.dump() self.assert_(True)
def test_check(self): s1 = cm.Vertex((1.0, 2.0, 3.0)) self.assert_(s1.check())
def test_copy(self): s1 = cm.Vertex((1.0, 2.0, 3.0)) s2 = s1.copy() s1.translate((1.0, 1.0, 1.0)) self.assert_(close(s2.center(), (1.0, 2.0, 3.0)) and close(s1.center(), (2.0, 3.0, 4.0)))