Esempio n. 1
0
 def test_load_scene(self):
     scene = Scene()
     loader = WaveLoader()
     obj_path = os.path.join(this_dir, 'testnurbs.obj')
     objects = loader.load(obj_path)
     scene.add(*objects)
     self.assertEqual(len(scene.children), 4)
Esempio n. 2
0
 def test_mesh_loader(self):
     loader = WaveLoader()
     obj_path = os.path.join(this_dir, 'testnurbs.obj')
     meshes = list(loader._load_meshes(obj_path, False))
     self.assertEqual(len(meshes), 4)
Esempio n. 3
0
 def test_loader(self):
     loader = WaveLoader()
     obj_path = os.path.join(this_dir, 'testnurbs.obj')
     objects = loader.load(obj_path)
     self.assertEqual(len(objects), 4)
Esempio n. 4
0
 def test_mesh_loader(self):
     loader = WaveLoader()
     obj_path = os.path.join(this_dir, 'testnurbs.obj')
     meshes = list(loader._load_meshes(obj_path, False))
     self.assertEqual(len(meshes), 4)
Esempio n. 5
0
 def test_loader(self):
     loader = WaveLoader()
     obj_path = os.path.join(this_dir, 'testnurbs.obj')
     objects = loader.load(obj_path)
     self.assertEqual(len(objects), 4)