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; }
public GLPoint(Point3D p1, int size1) { p = p1; size = size1; }
public GLLine(Point3D p1, Point3D p2, int size1, short type1) : base(p1, size1) { pnext = p2; type = type1; }
public GLTriangle(Point3D p1, Point3D p2, Point3D p3, int size1, short type1) : base(p1, p2, size1, type1) { pnext2 = p3; }
public GLTeapot(Point3D p1, int size1, int mode1) : base(p1, size1) { mode = mode1; }
public GLQuad(Point3D p1, Point3D p2, Point3D p3, Point3D p4, int size1, short type1) : base(p1, p2, p3, size1, type1) { pnext3 = p4; }
//Снятие координат точки с экрана + 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; }