示例#1
0
        public short type; //Тип линии

        #endregion Fields

        #region Methods

        //Очистка пакета
        public void Dispose()
        {
            P1 = null;
            P2 = null;
            P3 = null;
            P4 = null;
            type = -1;
            size = 1;
            mode = Gl.GL_FILL;
        }
示例#2
0
 public GLPoint(Point3D p1, int size1)
 {
     p = p1;
     size = size1;
 }
示例#3
0
 public GLLine(Point3D p1, Point3D p2, int size1, short type1)
     : base(p1, size1)
 {
     pnext = p2;
     type = type1;
 }
示例#4
0
 public GLTriangle(Point3D p1, Point3D p2, Point3D p3, int size1, short type1)
     : base(p1, p2, size1, type1)
 {
     pnext2 = p3;
 }
示例#5
0
 public GLTeapot(Point3D p1, int size1, int mode1)
     : base(p1, size1)
 {
     mode = mode1;
 }
示例#6
0
 public GLQuad(Point3D p1, Point3D p2, Point3D p3, Point3D p4, int size1, short type1)
     : base(p1, p2, p3, size1, type1)
 {
     pnext3 = p4;
 }
示例#7
0
        //Снятие координат точки с экрана + Z
        Point3D Get3DPoint(MouseEventArgs e, Color cl)
        {
            FormZ fr = new FormZ(this);
            fr.StartPosition = FormStartPosition.CenterParent;

            if (fr.ShowDialog() == DialogResult.OK)
            {
                Point3D p = new Point3D(e.X, simpleOpenGlControl1.Height - e.Y, fr.z, cl);
                return p;
            }
            return null;
        }