36 SunCGI Reference Manual EGPLISFL [63] Global polygon list is full. 0 Partial Polygon Cerror partial_polygon(polycoors, cflag) Ccoorlist *polycoors; /* list of points*/ Ccflag cflag; /* CLOSE previous polygon?*/ partial_polygon adds elements to the global polygon list without display- ing the polygon. The partial _polygon function provides the capability of drawing multiple-boundary polygons, including polygons with holes. The draw- ing is actually performed when polygon is called. polygon will close the last boundary on the global polygorrlist and add the coordinate list it is passed as the final polygon boundary before drawing.
cjlag controls whether the last polygon in the global polygon list is open or closed. If cjlag is set to CLOSE, the last polygon on the global polygon list will be closed by drawing a visible perimeter edge between the last and the first points of the last polygon on the global polygon list. If the cj/ag is set to OPEN, the points in polycoors are appended to the last polygon on the global polygon list, but an invisible perimeter edge will be drawn between the last point currently on the global polygon list and the first point in the Ccoorlist.
The visibility of polygon edges can be individually controlled by calling partial_polygon with cjlag set to OPEN for each invisible edge and with cjlag set to CLOSE for each new boundary. The interpretation of cjlag is slightly different than the pseudocode given in the CG! standard. Future versions of CGI may use a different syntax to offer the capabilities of multiple-boundary 0 polygons and invisible edges. The CGI standard specifies that circle, rectangle, ellipse and close_arc are primitives that may use the global polygon list for filling. SunCGI does not use the global polygon list in these functions, and therefore leaves it untouched.
These SunCGI routines do not empty the global polygon list. 0 Version C of 17 March 1986