Previous: cross-reference Up: ../graph3.html Next: avrage-array


SAMPLE-INPUT-FILE

 This input file draws a perspective view of a unit cube in the positive
 octant of the right-handed  coordinate system.  The  edges of the  cube
 are drawn as six curves in order to avoid retracing which would enhance
 some of the lines on  a pen plotter or  refresh type CRT display.   The
 eyepoint is in the positive octant at distances of 2.5, 5, 15, and  500
 units from  the  default  view  reference point  at  the  origin.   The
 perspective  distortion  is  extreme  in  the  first  view,  and   just
 noticeable  in  the  second.   The  last  two  views,  though  slightly
 different, are  indistinguishable  to  the  eye  from  an  orthographic
 parallel projection.  The U,V dimensions  of the window and the  HSCALE
 parameter are explicitly specified in  order to ensure a square  window
 with a unit aspect ratio.  The RESET option is used so that data values
 need not be unnecessarily duplicated in data groups after the first.

 $DATA X(1,1)=0,1,1,0,0, Y(1,1)=0,0,1,1,0, Z(1,1)=0,0,0,0,0,
   X(1,2)=0,1,1,0,0, Y(1,2)=0,0,1,1,0, Z(1,2)=1,1,1,1,1,
   X(1,3)=0,0,       Y(1,3)=0,0,       Z(1,3)=0,1,
   X(1,4)=1,1,       Y(1,4)=0,0,       Z(1,4)=0,1,
   X(1,5)=1,1,       Y(1,5)=1,1,       Z(1,5)=0,1,
   X(1,6)=0,0,       Y(1,6)=1,1,       Z(1,6)=0,1,
   LSTYLE(1)=6*1,
   VNXYZ(1)=-2,-1,-1,   PERDST=-2.5,
   UPXYZ(1)=0,0,1,
   UVAXES=T, UMIN=-1.5,UMAX=1.5, VMIN=-1.5,VMAX=1.5,
   HSCALE=0.722222,
   RESET=F,
 $END
 Perspective View of Unit Cube   Eye Distance -2.5
 X-axis
 Y-axis
 Z-axis
 U-axis
 V-axis
 $DATA
   PERDST=-5,
 $END
 Perspective View of Unit Cube   Eye Distance -5
 X-axis
 Y-axis
 Z-axis
 U-axis
 V-axis
 $DATA
   PERDST=-15,
 $END
 Perspective View of Unit Cube   Eye Distance -15
 X-axis
 Y-axis
 Z-axis
 U-axis
 V-axis
 $DATA
   PERDST=-500,
 $END
 Perspective View of Unit Cube   Eye Distance -500
 X-axis
 Y-axis
 Z-axis
 U-axis
 V-axis