예제 #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;
        }