1 |
< |
.\" RCSid "$Id" |
1 |
> |
.\" RCSid "$Id$" |
2 |
|
.TH GENSURF 1 11/15/93 RADIANCE |
3 |
|
.SH NAME |
4 |
< |
gensurf - generate a RADIANCE description of a curved surface |
4 |
> |
gensurf - generate a RADIANCE or Wavefront description of a curved surface |
5 |
|
.SH SYNOPSIS |
6 |
|
.B "gensurf mat name 'x(s,t)' 'y(s,t)' 'z(s,t)' m n" |
7 |
|
[ |
10 |
|
.B "\-f file" |
11 |
|
][ |
12 |
|
.B \-s |
13 |
+ |
][ |
14 |
+ |
.B \-o |
15 |
|
] |
16 |
|
.br |
17 |
|
.B "gensurf mat name 'x(s,t)' 'y(s,t)' dfile m n" |
21 |
|
.B "\-f file" |
22 |
|
][ |
23 |
|
.B \-s |
24 |
+ |
][ |
25 |
+ |
.B \-o |
26 |
|
] |
27 |
|
.br |
28 |
|
.B "gensurf mat name dfile dfile dfile m n" |
29 |
|
[ |
30 |
|
.B \-s |
31 |
+ |
][ |
32 |
+ |
.B \-o |
33 |
|
] |
34 |
|
.SH DESCRIPTION |
35 |
|
.I Gensurf |
36 |
< |
produces a RADIANCE scene description of a |
37 |
< |
functional surface defined by the parametric equations |
36 |
> |
produces either a RADIANCE scene description or a Wavefront .OBJ |
37 |
> |
file of a functional surface defined by the parametric equations |
38 |
|
.I x(s,t), |
39 |
|
.I y(s,t), |
40 |
|
and |
60 |
|
and |
61 |
|
.I \-f |
62 |
|
options. |
63 |
+ |
The variable and function definitions in each |
64 |
+ |
.I \-f source |
65 |
+ |
file are read and compiled from the RADIANCE library where it is found. |
66 |
|
The |
67 |
|
.I \-s |
68 |
|
option adds smoothing (surface normal interpolation) to the surface. |
69 |
+ |
The |
70 |
+ |
.I \-o |
71 |
+ |
option produces a Wavefront .OBJ file rather than a RADIANCE |
72 |
+ |
scene description. |
73 |
+ |
This is most useful as input to the |
74 |
+ |
.I obj2mesh(1) |
75 |
+ |
program for producing a compiled mesh. |
76 |
+ |
A single "usemtl" statement will appear at the beginning |
77 |
+ |
of the .OBJ output, echoing the modifier given on the command line. |
78 |
|
.PP |
79 |
|
Rough holes may be cut in the mesh by defining a valid(s,t) function. |
80 |
|
Where this function is positive, polygon vertices will be produced. |
111 |
|
To generate a 10x20 smoothed height field from 12 recorded vertex |
112 |
|
z values: |
113 |
|
.IP "" .2i |
114 |
< |
gensurf dirt ground '10*s' '20*t' height.dat 2 3 -s |
114 |
> |
gensurf dirt ground '10*s' '20*t' height.dat 2 3 \-s |
115 |
> |
.SH ENVIRONMENT |
116 |
> |
RAYPATH the directories to check for auxiliary files. |
117 |
|
.SH AUTHOR |
118 |
|
Greg Ward |
119 |
|
.SH BUGS |
120 |
|
The smoothing operation requires that functions be defined |
121 |
|
beyond the [0,1] boundaries of s and t. |
122 |
|
.SH "SEE ALSO" |
123 |
< |
calc(1), genbox(1), genrev(1), genworm(1), rpict(1), rview(1), xform(1) |
123 |
> |
genbox(1), genrev(1), genworm(1), icalc(1), |
124 |
> |
obj2mesh(1), obj2rad(1), robjutil(1), rpict(1), rvu(1), xform(1) |