Sun Microsystems 800-1256-04 — Sun Microsystems 800-1256-04 SunCGI Reference Manual PDF

Chapter 3 - Output 3 7 0 #include main() { Ccoor list[4]; Ccoorlist points; Cint name; Cvwsurf device; NORMAL_VWSURF(device, PIXWINDD); open_cgi () ; open_vws(&name, &device); interior_style(SOLIDI, ON); list[O] .x 10000; list [OJ .y = 10000; list [l] .x = 10000; list[l].y 20000; list [2] .x 20000; list [2] .y 20000; list [3] .x = 20000; list[3].y = 10000; points.ptlist=list; points.n=4; partial_polygon(&points, CLOSE); list [OJ .x = list[O] .y list(l] .x list[l] .y = list [2] .x list [2] .y list(3].x = list (3] .y = 0 12500; 12500; 12500; 17500; 17500; 17500; 17500; 12500; points.ptlist=list; points.n=4; polygon(&points); /* cut a hole in it*/ sleep(lO); close_vws(narne); close_ cgi () ; f - Figure 3-1 Example Program with Polygons An error is detected if the number of points on the global polygon list exceeds MAXPTS.

In this case, the polygon on the global polygon list is drawn, and the new information is not added. The same error handling applies to polygon. 0 Errors Version C of 17 March 1986