Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ poly(3g) — GL2 W2.5

Media Vault

Software Library

Restoration Projects

Artifacts Sought

poly()  —  Silicon Graphics

NAME

poly − outlines a polygon

SPECIFICATION

C
poly(n, parray)
long n;
Coord parray[][3];

polyi(n, parray)
long n;
Icoord parray[][3];

polys(n, parray)
long n;
Scoord parray[][3];

poly2(n, parray)
long n;
Coord parray[][2];

poly2i(n, parray)
long n;
Icoord parray[][2];

poly2s(n, parray)
long n;
Scoord parray[][2];

FORTRAN
subroutine poly(n, parray)
integer*4 n
real parray(3,n)

subroutine polyi(n, parray)
integer*4 n
integer*4 parray(3,n)

subroutine polys(n, parray)
integer*4 n
integer*2 parray(3,n)

subroutine poly2(n, parray)
integer*4 n
real parray(2,n)

subroutine poly2i(n, parray)
integer*4 n
integer*4 parray(2,n)

subroutine poly2s(n, parray)
integer*4 n
integer*2 parray(2,n)

Pascal
procedure poly(n: longint; var parray: Coord);

procedure polyi(n: longint; var parray: Icoord);

procedure polys(n: longint; var parray: Scoord);

procedure poly2(n: longint; var parray: Coord);

procedure poly2i(n: longint; var parray: Icoord);

procedure poly2s(n: longint; var parray: Scoord);

DESCRIPTION

poly outlines a polygon. It takes two arguments: an array of points (parray) and the number of points in that array (n).  A polygon is represented as an array of points.  The first and last points connect automatically to close the polygon.  The points can be expressed as integers, shorts, or real numbers, in 2D or 3D space.  Two-dimensional polygons are drawn with z=0.  The polygon is outlined using the current linestyle, linewidth, color, and writemask.  The maximum number of points in a polygon is 384. 

SEE ALSO

polf, rect, rectf, pmv, pdr, pclos, rpmv, rpdr IRIS Graphics Programming, Section 3.6, Polygons
 

Version 2.5  —  April 22, 1987

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026