home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / x / xcu16.zip / clients / xcell / Perturb / collect < prev    next >
Text File  |  1991-10-03  |  2KB  |  42 lines

  1. #!/bin/ksh
  2.  
  3. #
  4. # Copyright 1991 Cornell University
  5. #
  6. # Permission to use, copy, modify, and distribute this software and its
  7. # documentation for any purpose and without fee is hereby granted, provided
  8. # that the above copyright notice appear in all copies and that both that
  9. # copyright notice and this permission notice appear in supporting
  10. # documentation, and that the name of Cornell U. not be used in advertising
  11. # or publicity pertaining to distribution of the software without specific,
  12. # written prior permission.  Cornell U. makes no representations about the
  13. # suitability of this software for any purpose.  It is provided "as is"
  14. # without express or implied warranty.
  15. #
  16. # CORNELL UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  17. # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  18. # EVENT SHALL CORNELL UNIVERSITY BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  19. # CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  20. # USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  21. # OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  22. # PERFORMANCE OF THIS SOFTWARE.
  23. #
  24. # Author:  Gene W. Dykes, Program of Computer Graphics
  25. #          580 Theory Center, Cornell University, Ithaca, NY 14853
  26. #          (607) 255-6713   gwd@graphics.cornell.edu
  27. #
  28.  
  29. /bin/cat p? p?? p??? 2>/dev/null | sort | uniq > p.collect
  30.  
  31. g=`wc p.collect | gwc`
  32.  
  33. if [ $g -gt 144 ] ; then g=144; fi
  34.  
  35. grid=`grep g$g grid | ggrid`
  36.  
  37. xcell `/bin/cat options` \
  38.     -rules p.collect \
  39.     -pick p.cull \
  40.     $grid
  41.  
  42.