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);
        }
예제 #2
0
        public bool run()
        {
            AlgoStep current = enumerator.Current;

            if (current == null)
            {
                return(false);
            }

            bool success = current.runStep(this);

            goToNextProcess(success);

            return(success);
        }
예제 #3
0
 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);
 }