void TestFile(string file) { var pla = PLA.Parse(new StreamReader(File.OpenRead(file))); TestContext.WriteLine(pla.ToString()); TestContext.WriteLine("Cubes: {0}", pla.Cover.Count); var cov = new PLA(EspressoNet.Espresso(pla.Cover, pla.CoverType)); TestContext.WriteLine(cov.ToString()); TestContext.WriteLine("Cubes: {0}", cov.Cover.Count); }
public static void Main(string[] args) { var pla = PLA.Parse(new StreamReader(File.OpenRead(@"C:\dev\Espresso\tlex\alu4.pla"))); pla.WriteTo(System.Console.Out); System.Console.WriteLine("Cubes: {0}", pla.Cover.Count); System.Console.WriteLine("press enter to process..."); System.Console.ReadLine(); var rst = EspressoNet.Espresso(pla.Cover, pla.CoverType != EspressoCoverType.None ? pla.CoverType : EspressoCoverType.F_TYPE | EspressoCoverType.D_TYPE); pla = new PLA(rst); pla.WriteTo(System.Console.Out); System.Console.WriteLine("Cubes: {0}", pla.Cover.Count); System.Console.ReadLine(); }