private void Bestaetigen_Click(object sender, EventArgs e) { Linelist Lin = new Linelist(); Surfacelist lists = new Surfacelist(); string path = FileName.Text; Pointlist L = new Pointlist(); Linelist List_line = new Linelist(); Normal_Vectors vect = new Normal_Vectors(); if (vect.IS_ASCII(path)) { MessageBox.Show("the ASCII File is Oppening"); vect.ASCII_Reader(vect, L, Lin, lists, path); } else { MessageBox.Show("The Binary File is Oppening "); double h = vect.Bin_Reader(vect, L, Lin, lists, path); } //List_line = L.Line_construction(); // if (List_line.IstVollständig() == null) //{ MessageBox.Show("all components are complete"); } //else MessageBox.Show("there is a mistake in there"); this.Hide(); Objekt Obj = new Objekt(L, vect, comboBox1); Obj.ShowDialog(); }
public Objekt(Pointlist point, Normal_Vectors normal, ComboBox Combo) { Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US"); Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US"); points = point; normals = normal; gewähltefarbe = Combo.Text; InitializeComponent(); InitializeComponent(); }
private static void Konvertion(Pointlist point, Normal_Vectors normal) { foreach (StlReader.Normal_vector O in normal.Vectors) { normallist.Add(O.x); normallist.Add(O.y); normallist.Add(O.z); } normalarray = normallist.ToArray <float>(); foreach (KeyValuePair <StlReader.Point, List <line> > kvp in point.d) { pointlist.Add(kvp.Key.x); pointlist.Add(kvp.Key.y); pointlist.Add(kvp.Key.z); } pointarray = pointlist.ToArray <float>(); }