public static void fillrectangle(int x0, int y0, int z0, int r1, int f1, int t1, int r2, int f2, int t2) { bool temp = Graph.imediateDrawing; Graph.imediateDrawing = false; Graph3dDraw.fillrectangle(x0, y0, z0, r1, f1, t1, r2, f2, t2); Graph.imediateDrawing = temp; if (Graph.imediateDrawing) { Graph.delay(0); } }
public static void fillrectangle(int x0, int y0, int z0, int Xscale, int Yscale, Surface s) { bool temp = Graph.imediateDrawing; Graph.imediateDrawing = false; switch (s) { case Surface.XY: Graph3dDraw.fillrectangle(x0, y0, z0, Xscale, 90, 0, Yscale, 90, -90); break; case Surface.XZ: Graph3dDraw.fillrectangle(x0, y0, z0, Xscale, 90, 0, Yscale, 0, -90); break; case Surface.YZ: Graph3dDraw.fillrectangle(x0, y0, z0, Xscale, 0, -90, Yscale, 90, -90); break; } Graph.imediateDrawing = temp; if (Graph.imediateDrawing) { Graph.delay(0); } }