static void Main(string[] args) { Test_Datamodel test_datamodel1 = new Test_Datamodel(); DataStructure dm = new DataStructure(); test_datamodel1.FillDatamodel(dm); ErrorFinding errorFinding = new ErrorFinding(); errorFinding.FindError(dm, new System.Drawing.Color()); IdentifyBodies identifyBodies = new IdentifyBodies(); identifyBodies.FindBodies(dm); //Console.WriteLine(dm.faces.GetFace(0).bodyID); //Console.WriteLine(dm.faces.GetFace(1).bodyID); //Console.WriteLine(dm.faces.GetFace(2).bodyID); //Console.WriteLine(dm.faces.GetFace(3).bodyID); //Console.WriteLine(dm.faces.GetFace(4).bodyID); //Console.WriteLine(dm.faces.GetFace(5).bodyID); //Console.WriteLine(dm.faces.GetFace(6).bodyID); //Console.WriteLine(dm.faces.GetFace(7).bodyID); for (int i = 0; dm.edges.GetEdge(i) != null; i++) { Console.WriteLine(dm.edges.GetEdge(i).CurrentCondition); } Console.ReadLine(); }
private void button1_Click(object sender, EventArgs e) { Stopwatch timePassed = new Stopwatch(); timePassed.Start(); ErrorFinding errorFinding = new ErrorFinding(); errorFinding.FindError(dm, new System.Drawing.Color()); StringBuilder sb = new StringBuilder(); foreach (int id in dm.FaultyEdges) { sb.AppendLine("ID " + id + " " + Convert.ToString(dm.edges.GetEdge(Convert.ToInt32(id)).CurrentCondition)); } //sb.AppendLine(Convert.ToString(dm.faces.GetFace(123).bodyID)); timePassed.Stop(); sb.AppendLine("Edges not Listed here are not faulty"); sb.AppendLine("Time Passed: " + timePassed.Elapsed); textBox1.Text = Convert.ToString(sb); }