Beispiel #1
0
 def testExtrude4pt(self):
     opt = import_vecfile.ImportOptions()
     opt.extrude_depth = 0.5
     opt.convert_options.filled_only = False
     opt.convert_options.smoothness = 0
     (m, msg) = import_vecfile.ReadVecFileToModel("testfiles/4pt.ai", opt)
     self.assertEqual(msg, "")
     self.assertEqual(len(m.faces), 5)
Beispiel #2
0
 def testBevel4pt(self):
     opt = import_vecfile.ImportOptions()
     opt.bevel_amount = .5
     opt.convert_options.filled_only = False
     opt.convert_options.smoothness = 0
     (m, msg) = import_vecfile.ReadVecFileToModel("testfiles/4pt.ai", opt)
     self.assertEqual(msg, "")
     self.assertEqual(len(m.faces), 5)
     if SHOW:
         showfaces.ShowFaces(m.faces, m.points, "Bevel 4pt")
Beispiel #3
0
 def testBevel3dout(self):
     opt = import_vecfile.ImportOptions()
     opt.bevel_amount = 0.05
     opt.convert_options.filled_only = False
     opt.convert_options.smoothness = 0
     opt.convert_options.combine_paths = True
     (m, msg) = import_vecfile.ReadVecFileToModel("testfiles/3dout.ai", opt)
     self.assertEqual(msg, "")
     self.assertEqual(len(m.faces), 44)
     if SHOW:
         showfaces.ShowFaces(m.faces, m.points, "Bevel 3dout")
Beispiel #4
0
 def test3dout(self):
     opt = import_vecfile.ImportOptions()
     opt.convert_options.subdiv_kind = "EVEN"
     opt.bevel_amount = 20.0
     self.ReadModel("testfiles/3dout.ai", opt)
Beispiel #5
0
 def test43(self):
     opt = import_vecfile.ImportOptions()
     opt.convert_options.filled_only = False
     opt.convert_options.combine_paths = True
     self.ReadModel("testfiles/4_3.ai", opt)
Beispiel #6
0
 def testStuff(self):
     self.ReadModel("testfiles/stuff.ai", import_vecfile.ImportOptions())
Beispiel #7
0
 def testO(self):
     self.ReadModel("testfiles/O.ai", import_vecfile.ImportOptions())