Пример #1
0
        //产生相应模块
        public well2d Create_Vertical_Well(PO center)
        {
            well2d well = new well2d(center.x, center.y);

            well.GetOGL(PAINT);
            well.Set_ge_pl(this.Get_ge_pl());
            //well.Set_initial_pl(this.initial_pl);
            well.Generate_eadge();
            model_l.Insert(well);
            return(well);
        }
Пример #2
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));
 }
Пример #3
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;
        }
Пример #4
0
        public void START()
        {
            util   u1 = new util();
            well2d w1 = new well2d();

            w1.GetOGL(PAINT);
            w1.Set_ge_pl(ge_p_l);
            w1.Set_initial_pl(initial_pl);
            center = w1.center;
            model_l.Insert(w1);
            plane = new plane2d();
            plane.GetOGL(PAINT);
            plane.Set_ge_pl(ge_p_l);
            plane.Generate_eadge();
            Create_boundary_model();
            Generate_allmodel_edge_po();
            DealModuleConflict();
            plane.Get_model_l(model_l); //把模块链给plane
            plane.GenerateNetPo();      //plane根据自己的边界和模块产生点
            Generate_allmodel_po();     //产生所有模块的点
        }