/************************************************************************/ /* */ /* Copyright Pittsburgh Supercomputing Center 1987, 1988, 1990 */ /* All Rights Reserved */ /* Author Joel Welling */ /* */ /* clip_test.c version 1.0 */ /* */ /************************************************************************/ /* This module recognizes what type of machine it's on by the presence of the symbol VMS, unix, CRAY, or ardent. The following makes the machine assignment less ambiguous. */ #if (unix && (!CRAY && !ardent && !__hpux )) #define USE_UNIX #endif #ifdef VMS #include stdio #include descrip #include math #else #include #include #include #endif /* Include defs files that allow linkage to Fortran on various systems */ #ifdef USE_UNIX #include "unix_defs.h" #endif #ifdef CRAY #include "unicos_defs.h" #endif #ifdef ardent #include "unicos_defs.h" /* these are also appropriate on Ardent Titan */ #endif #define VCOUNT 39 #define PI 3.14159265 #define PVCOUNT 12 static float xpolygon[PVCOUNT]= { 0.4, 0.4, 0.1, 0.1, 0.9, 0.9, 0.6, 0.6, 0.85, 0.85, 0.15, 0.15 }; static float ypolygon[PVCOUNT]= { 0.6, 0.4, 0.4, 0.9, 0.9, 0.4, 0.4, 0.6, 0.6, 0.85, 0.85, 0.6 }; static int pvcount= PVCOUNT; static float cur_theta= 0.0, cur_delta= -0.5; static void project( xorig, yorig, xres, yres, npts ) float *xorig, *yorig, *xres, *yres; int npts; { int iloop; #ifdef never for (iloop=0; iloop