private void buttonDrawCube_Click(object sender, EventArgs e)
        {
            Wpf3D.MainWindow wpfwindow = new Wpf3D.MainWindow();
            wpfwindow.ShowDialog();

            /*
             * Point a = new Point(301, 178);
             * Point b = new Point(237, 196);
             * Point c = new Point(315, 280);
             * Point d = new Point(166, 253);
             *
             * CGUserGraphics g = new CGUserGraphics();
             * MessageBox.Show(String.Format("{0}", g.IsSegmentsIntersect(a, b, c, d)));
             *
             * a = new Point(0, 0);
             * b = new Point(2, 2);
             * c = new Point(1, 0);
             * d = new Point(3, 2);
             * MessageBox.Show(String.Format("{0}", g.IsSegmentsIntersect(a, b, c, d)));
             *
             *
             *
             * CGUserGraphicsPolygon polygon = new CGUserGraphicsPolygon(new List<Point>()
             * {
             *  new Point(100, 100),
             *  new Point(140, 140),
             *  new Point(100, 180),
             * }
             * );
             *
             * Rectangle rect = new Rectangle(120, 100, 60, 41);
             *
             * polygon.TransformTrim(rect);
             * userCanvas.AddGraphics(polygon);
             * ghs.DrawImage(userCanvas.bmp, this.ClientRectangle);
             */
        }
示例#2
0
        private void Button_3D_Click(object sender, EventArgs e)
        {
            Wpf3D.MainWindow wpfwindow = new Wpf3D.MainWindow();

            wpfwindow.ShowDialog();
        }