Exemple #1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     w1.GetOGL(ogl1);
     w1.GenerateNetPo();
     de.GetOGL(ogl1);
     de.Initial(w1);
     de.SearchPoint(3);
     ogl1.PlotGL();
     this.KeyPreview = true;
     //PO p0,p1,p2,p4;
     //p0 = new PO(1,2,3);
     //p1 = new PO(-1,-2,-3);
     //p2 = new PO(2,4,5);
     //p4 = new PO(0,1,2);
     //util u1 = new util();
     //u1.InFile(u1.infopath,u1.Cal_surface_angle(p0,p1,p2,p4));
 }
Exemple #2
0
        private void _3Dshow_Load(object sender, EventArgs e)
        {
            util       u1     = new util();
            FileStream stream = File.Open(u1.infopath, FileMode.OpenOrCreate, FileAccess.Write);

            stream.Seek(0, SeekOrigin.Begin);
            stream.SetLength(0);
            stream.Close();//清空文件内容
            w1.GetOGL(ogl1);
            w1.GenerateNetPo();
            de.GetOGL(ogl1);
            de.Initial(w1);
            de.SearchPoint(num);
            ogl1.PlotGL();
            list_box_add(de);
            add_text();
            this.KeyPreview = true;
        }