protected override void Run_Impl(AlgoStep step, string inputPath, string outputPath) { var scriptPath = Program.Path(Subfolder.none, "filter_qem", Ext.mlx); var scriptContent = GetQEMScriptContent(step.faceCount);//, PlanarQuadric: true, QualityWeight: true, QualityThr: 0.5f); var logfilePath = Program.Path(Subfolder.none, $"logfile_{ao.name}", Ext.txt); var command = $"-l {logfilePath} -i {inputPath} -o {outputPath} -s {scriptPath}"; MeshlabWorkspace.Instance.RunTemporaryMeshLabScript(scriptContent, scriptPath, command, logfilePath, true); }
public bool run() { AlgoStep current = enumerator.Current; if (current == null) { return(false); } bool success = current.runStep(this); goToNextProcess(success); return(success); }
public void addAlgoStep(AlgoStep step) { algoList.Add(step); }
protected override void Run_Impl(AlgoStep step, string inputPath, string outputPath) { Cli.Run($"-t {step.faceCount} -o {outputPath} {inputPath}", ao.workspace.exePath); }