public static string TestVimToJsonToVim(string filePath) { // Check we can open the VIM var vim = VimScene.LoadVim(filePath); // Save the VIM as JSON var outputJson = Path.ChangeExtension(filePath, ".json"); vim.SaveAsVa3c(outputJson); // Now try reloading thw new JSON and saving again as VIM var va3c = LoadVa3c(outputJson); var outputVim = Util.ChangeDirectoryAndExt(filePath, TestOutputFolder, ".resaved.vim"); va3c.SaveAsVim(outputVim); return(outputVim); }
public static string TestVimToObj(string filePath, string objFilePath = null) { objFilePath = objFilePath ?? Util.ChangeDirectoryAndExt(filePath, TestOutputFolder, ".obj"); VimScene.LoadVim(filePath).ToIMesh().WriteObj(objFilePath); return(objFilePath); }
public override void OnOpenFile(string fileName) { var vim = VimScene.LoadVim(fileName); SliderListView.Init(new VimHelper(RenderApi, vim)); }