38 SunCGI Refer,,nce Manual 0 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. EGPLISFL [63] Global polygon list is full. Rectangle Cerror rectangle(rbc, ltc) Ccoor *rbc, *ltc; /* corners defining rectangle*/ rectangle displays a box with its lower right-hand comer at point rbc and its upper left-hand comer at point ltc. Calls to rectangle do not affect the glo- bal polygon list. The interior of the rectangle (the filled portion) is defined by rbc and ltc. The perimeter is drawn outside of this region.
The appearance of the rectangle is determined by the fill area and perimeter attributes. A rectangle with one side coincident with a clipping boundary specifies an interior extending to the boundary. Hence, a portion of the perimeter is outside the clipping boun- dary and is not drawn. If the arguments to rectangle would result in a point or a line, the point or line is drawn. However, if the arguments to rectangle determine a point, the point is drawn with width zero, regardless of the current value of perimeter width . If the values of rbc and ltc are reversed, the points are automatically reversed and the rectangle is drawn normally. 0 Errors ENOTVSAC [4] CGI not in proper state:
CGI shall be in state VSAC. Circle Cerror circle(cl, rad) Ccoor *cl; /*center*/ Cint rad; /*radius*/ circle draws a circle of radius rad centered at cl. The argument rad is expressed in terms of VDC space. The color, form, and visibility of the interior and perimeter are controlled by the same solid object attributes which control the drawing of polygons and rectangles. The argument rad determines the size of the interior of the circle. Therefore, a circle with a thick perimeter may be larger than expected. If the radius is zero, a point is drawn, and no textured perimeter is drawn, even if the perimeter width is large. If the radius is negative, the absolute value of the radius is used.
Textured circles may possibly contain an incorrect element at one point because the digital circumference may not be exactly divisible by the length of the texture element. Errors ENOTVSAC [4] CGI not in proper state: CGI shall be in state VSAC. Circular Arc Center Cerror circular_arc_center(cl, c2x, c2y, c3x, c3y, rad) Ccoor *cl; /*center*/ Cint c2x, c2y, c3x, c3y; /*endpoints*/ Cint rad; /*radius*/ 0 Version C of 17 March 1986