Sun Microsystems 800-1256-04 — Sun Microsystems 800-1256-04 SunCGI Reference Manual PDF (EN)

Chapter 3 - Output 35 0 Cerror disjoint_polyline(polycoors) Ccoorlist •polycoors; list of points*/ dis joint_polyline draws lines between pairs of elements in ptlist. The line attributes described in Section 4.2 determine the appearance of the dis joint_polyline function. If polycoors contains an odd number of points, the last point is ignored. As with polyline, if the number of points is less than two or greater than MAXPrS, an error is generated. dis joint_polyline is typically used to implement scan-line polygon filling algorithms. Errors ENOTVSAC [4] CGI not in proper state: CGI shall be in state VSAC. ENMPTSTL [60] Number of points is too large.

EPLMTWPT [61] polylines·must have at least two points. Polymarker Cerror polymarker(polycoors) Ccoorlist •polycoors; /* list of points*/ polymarker draws a marker at each point. The type, color, and size of marker are set by the polymarker_bundle_index, marker_type, marker_color,marker_size,and marker_size_specification_mode functions. If the number of.points specified is greater than the maximum number of points, an error is generated. polymarker is useful for making graphs such as scatter plots. 0 Errors ENOTVSAC [4] CGI not in proper state: CGI shall be in state VSAC. ENMPTSTL [60] Number of points is too large.

Polygon Cerror polygon(polycoors) Ccoorlist •polycoors; /* list of points*/ polygon displays the polygon described by the points inpolycoors. In addi- tion, any points added to the global polygon list by the partial_polygon function are also displayed. The polygon is filled between edges. Polygons are allowed to be self-intersecting. The visibility of individual edges can only be set by the partial_polygon function. The style and color used to fill the polygon are set by the solid object attribute functions described in Chapter 4. The characteristics of the edges are controlled by the perimeter attribute func- tions.

The number of points in the polygon used to determine the error condition · of too few or too many points is the total number of points on the global polygon list, not the number of points specified in polycoors. After the polygon is drawn, the global polygon list is emptied. Errors ENOTVSAC [4] CGI not in proper state: CGI shall be in state VSAC. ENMPTSTL [60] Number of points is too large. EPGMTHPT [62] Polygons must have at least three points. Version C of 17 March 1986