src/shcube.c

00001 
00006 /*
00007  *  PROGRAM NAME:  sh
00008  *
00009  *  (c) COPYRIGHT INTERNATIONAL BUSINESS MACHINES
00010  *  CORPORATION 12/1/2001.  ALL RIGHTS RESERVED.
00011  *
00012  *  Please refer to the LICENSE file in the top directory
00013  *
00014  *      author: Mike Henderson mhender@watson.ibm.com
00015  */
00016 
00017 static char *id="@(#) $Id: shcube.c,v 1.2 2006/08/17 19:28:17 mhender Exp $";
00018 
00019 #include <shInternal.h>
00020 
00031 void shcube(float *xmin,float *xmax,float *ymin,float *ymax,float *zmin,float *zmax)
00032  {
00033 
00034 /*  Draw a wireframe cube. */
00035 
00036   shline(xmin,ymin,zmin,xmax,ymin,zmin);
00037   shline(xmax,ymin,zmin,xmax,ymin,zmax);
00038   shline(xmax,ymin,zmax,xmin,ymin,zmax);
00039   shline(xmin,ymin,zmax,xmin,ymin,zmin);
00040 
00041   shline(xmin,ymax,zmin,xmax,ymax,zmin);
00042   shline(xmax,ymax,zmin,xmax,ymax,zmax);
00043   shline(xmax,ymax,zmax,xmin,ymax,zmax);
00044 
00045   shline(xmin,ymax,zmax,xmin,ymax,zmin);
00046 
00047   shline(xmin,ymin,zmin,xmin,ymax,zmin);
00048   shline(xmin,ymin,zmax,xmin,ymax,zmax);
00049 
00050   shline(xmax,ymin,zmin,xmax,ymax,zmin);
00051 
00052   shline(xmax,ymin,zmax,xmax,ymax,zmax);
00053 
00054   return;
00055  }

Generated on Thu Aug 17 15:29:43 2006 for sh by  doxygen 1.4.6