示例#1
0
 def test_my_head(self):
     """Does it load a huge model OK?"""
     stl = STL(os.path.join(os.path.dirname(__file__),
         'data', 'derekhead.stl'))
     type = stl.type()
     if type == "binary":
         print stl.header()
         print "Length is: ", stl.length()
     stl.read()
     self.assertEquals(type, 'binary')
     self.assertEquals(stl.length(), 33326)
示例#2
0
 def test_my_head(self):
     """Does it load a huge model OK?"""
     stl = STL(
         os.path.join(os.path.dirname(__file__), 'data', 'derekhead.stl'))
     type = stl.type()
     if type == "binary":
         print stl.header()
         print "Length is: ", stl.length()
     stl.read()
     self.assertEquals(type, 'binary')
     self.assertEquals(stl.length(), 33326)