private void meshToolStripMenuItem_Click(object sender, EventArgs e) { mesh = new MeshSettings(this); mesh.ShowDialog(); }
private void ratioRoundedToolStripMenuItem_Click(object sender, EventArgs e) { blob = new BlobSettings(false, this); blob.ShowDialog(); mesh = new MeshSettings(this, true); this.mesh.ShowDialog(); RatioResults r = new RatioResults(); mesh.GenerateMesh("Square"); CompareToImage(true); r.SquareTime = result.time; mesh.GenerateMesh("Triangle"); CompareToImage(true); r.TriangleTime = result.time; mesh.GenerateMesh("Hexagon"); CompareToImage(true); r.HexagonTime = result.time; r.ratioRounded(); }
private string simplicityPercentage() { string s = ""; General g = new General(); MeshSettings m = new MeshSettings(); int percentage = g.CalcualtePercentage(numbers[4], m.tb_Thickness.Maximum); s = String.Format("The mesh finess is at {0}%", percentage); return s; }