| 1 |
greg |
1.4 |
.\" RCSid "$Id: genrev.1,v 1.3 2004/01/01 19:31:44 greg Exp $" |
| 2 |
greg |
1.1 |
.TH GENREV 1 11/15/93 RADIANCE |
| 3 |
|
|
.SH NAME |
| 4 |
|
|
genrev - generate a RADIANCE description of surface of revolution |
| 5 |
|
|
.SH SYNOPSIS |
| 6 |
|
|
.B "genrev mat name 'z(t)' 'r(t)' nseg" |
| 7 |
|
|
[ |
| 8 |
|
|
.B "\-e expr" |
| 9 |
|
|
][ |
| 10 |
|
|
.B "\-f file" |
| 11 |
|
|
][ |
| 12 |
|
|
.B \-s |
| 13 |
|
|
] |
| 14 |
|
|
.SH DESCRIPTION |
| 15 |
|
|
.I Genrev |
| 16 |
|
|
produces a RADIANCE scene description of a |
| 17 |
|
|
surface of revolution. |
| 18 |
|
|
The object will be composed of |
| 19 |
|
|
.I nseg |
| 20 |
|
|
cones, cups, cylinders, tubes or rings |
| 21 |
|
|
following the parametric curve defined by |
| 22 |
|
|
.I z(t) |
| 23 |
|
|
(height) |
| 24 |
|
|
and |
| 25 |
|
|
.I r(t) |
| 26 |
|
|
(radius). |
| 27 |
|
|
When |
| 28 |
|
|
.I z |
| 29 |
|
|
is increasing with t, the surface normal points outward. |
| 30 |
|
|
When |
| 31 |
|
|
.I z |
| 32 |
|
|
is decreasing, the normal points inward. |
| 33 |
|
|
The variable |
| 34 |
|
|
.I t |
| 35 |
|
|
used in the function expressions varies |
| 36 |
|
|
from 0 to 1 in even steps of |
| 37 |
|
|
.I 1/nseg. |
| 38 |
|
|
The expressions are of the same type used in RADIANCE |
| 39 |
|
|
function files. |
| 40 |
|
|
Auxiliary expressions and/or files may be specified |
| 41 |
|
|
in any number of |
| 42 |
|
|
.I \-e |
| 43 |
|
|
and |
| 44 |
|
|
.I \-f |
| 45 |
|
|
options. |
| 46 |
|
|
The |
| 47 |
|
|
.I \-s |
| 48 |
|
|
option smooths the surfaces using Phong normal interpolation. |
| 49 |
|
|
.SH EXAMPLE |
| 50 |
|
|
To generate a torus with an inner radius of 1 and an outer radius |
| 51 |
|
|
of 3: |
| 52 |
|
|
.IP "" .2i |
| 53 |
greg |
1.4 |
genrev steel torus 'sin(2*PI*t)' '2+cos(2*PI*t)' 32 |
| 54 |
greg |
1.1 |
.SH AUTHOR |
| 55 |
|
|
Greg Ward |
| 56 |
|
|
.SH BUGS |
| 57 |
|
|
The -s option doesn't modify the surface normal correctly |
| 58 |
|
|
for the opposite side. |
| 59 |
|
|
.SH "SEE ALSO" |
| 60 |
greg |
1.3 |
genbox(1), gensurf(1), genworm(1), icalc(1), rpict(1), rvu(1), xform(1) |