Exemplo 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)
Exemplo 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)
Exemplo 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)
Exemplo 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)
Exemplo 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)