Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ poly(3) — GL1 W2.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

poly(3)  —  Silicon Graphics R1c

NAME

poly - outline a polygon

SYNOPSIS

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

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

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

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

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

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

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

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

Pascal
procedure poly(n: integer; var parray: Coord3array);

procedure polyi(n: integer; var parray: Icoord3array);

procedure poly2(n: integer; var parray: Coord2array);

procedure poly2i(n: integer; var parray: Icoord2array);

DESCRIPTION

Poly takes two arguments:  an array of points and the number of points in that array.  A polygon is represented as an array of points.  The first and last points are automatically connected to close the polygon.  The points can be expressed as integers 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. 

SEE ALSO

polf, rect, rectf

Version 2.3  —  July 04, 1985

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