Example #1
0
        public static void stereoImage(int x0, int y0, int z0, int Xscale, int Xfi, int Xteta, int Yscale, int Yfi, int Yteta, Bitmap image)
        {
            bool temp = Graph.imediateDrawing;

            Graph.imediateDrawing = false;
            Graph3dStereoImage.image(x0, y0, z0, Xscale, Xfi, Xteta, Yscale, Yfi, Yteta, image);
            Graph.imediateDrawing = temp;
            if (Graph.imediateDrawing)
            {
                Graph.delay(0);
            }
        }
Example #2
0
        public static void stereoImage(int x0, int y0, int z0, int Xscale, int Yscale, Surface s, Bitmap image)
        {
            bool temp = Graph.imediateDrawing;

            Graph.imediateDrawing = false;
            switch (s)
            {
            case Surface.XY:
                Graph3dStereoImage.image(x0, y0, z0, Xscale, 90, 0, Yscale, 90, -90, image); break;

            case Surface.XZ:
                Graph3dStereoImage.image(x0, y0, z0, Xscale, 90, 0, Yscale, 0, -90, image); break;

            case Surface.YZ:
                Graph3dStereoImage.image(x0, y0, z0, Xscale, 0, -90, Yscale, 90, -90, image); break;
            }
            Graph.imediateDrawing = temp;
            if (Graph.imediateDrawing)
            {
                Graph.delay(0);
            }
        }