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