home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / video / render / radiance.lzh / ray / doc / cat1 / gensurf.doc < prev    next >
Encoding:
Text File  |  1991-11-24  |  1.4 KB  |  67 lines

  1.  
  2.  
  3.  
  4. GENSURF(1)               USER COMMANDS                 GENSURF(1)
  5.  
  6.  
  7.  
  8. NAME
  9.      gensurf - generate a RADIANCE description  of  a  functional
  10.      surface
  11.  
  12. SYNOPSIS
  13.      gensurf mat name 'x(s,t)' 'y(s,t)' 'z(s,t)' m n [ -e expr ][
  14.      -f file ][ -s ]
  15.  
  16. DESCRIPTION
  17.      Gensurf produces a RADIANCE scene  description  of  a  func-
  18.      tional  surface  defined by the parametric equations x(s,t),
  19.      y(s,t), and z(s,t). The surface normal  is  defined  by  the
  20.      right hand rule as applied to (s,t). S will vary from 0 to 1
  21.      in steps of 1/m, and t will vary from 0 to  1  in  steps  of
  22.      1/n.  The  surface will be composed of 2*m*n or fewer trian-
  23.      gles and quadralaterals.  The expressions are  of  the  same
  24.      type used in RADIANCE function files.  Auxiliary expressions
  25.      and/or files may be specified in any number  of  -e  and  -f
  26.      options.   The  -s  option  adds  smoothing  (surface normal
  27.      interpolation) to the surface.
  28.  
  29. EXAMPLE
  30.      To generate a tesselated sphere:
  31.  
  32.        gensurf crystal ball  'sin(PI*s)*cos(2*PI*t)'  'cos(PI*s)'
  33.        'sin(PI*s)*sin(2*PI*t)' 7 10
  34.  
  35. AUTHOR
  36.      Greg Ward
  37.  
  38.      The smoothing  operation  requires  that  the  functions  be
  39.      defined beyond the [0,1] boundaries of s and t.
  40.  
  41. SEE ALSO
  42.      calc(1),   genbox(1),   genrev(1),   genworm(1),   rpict(1),
  43.      rview(1), xform(1)
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sun Release 4.1           Last change:                          1
  64.  
  65.  
  66.  
  67.