1 |
.\" RCSid "$Id: genbox.1,v 1.6 2021/04/15 23:51:04 greg Exp $" |
2 |
.TH GENBOX 1 11/15/93 RADIANCE |
3 |
.SH NAME |
4 |
genbox - generate a RADIANCE or Wavefront description of a box |
5 |
.SH SYNOPSIS |
6 |
.B "genbox mat name xsiz ysiz zsiz" |
7 |
[ |
8 |
.B \-i |
9 |
][ |
10 |
.B "\-b bev" |
11 |
| |
12 |
.B "\-r rad" |
13 |
[ |
14 |
.B "\-n nseg |
15 |
][ |
16 |
.B \-s |
17 |
] |
18 |
][ |
19 |
.B \-o |
20 |
] |
21 |
.SH DESCRIPTION |
22 |
.I Genbox |
23 |
produces a RADIANCE scene description of a parallelepiped |
24 |
with one corner at the origin and the opposite corner at |
25 |
.I "(xsiz, ysiz, zsiz)." |
26 |
The sides of the box will be parallel to the three coordinate |
27 |
planes. |
28 |
The surfaces that make up the box will be modified by |
29 |
.I mat |
30 |
and their identifiers will begin with |
31 |
.I name. |
32 |
.PP |
33 |
The |
34 |
.I \-i |
35 |
option can be used to produce a box with inward directed surface |
36 |
normals. |
37 |
.PP |
38 |
The |
39 |
.I \-b |
40 |
option can be used to specify the indentation for beveled edges. |
41 |
.PP |
42 |
The |
43 |
.I \-r |
44 |
option can be used to specify the radius for rounded edges, which |
45 |
are normally |
46 |
modeled as cylinders and spheres for non-inverted RADIANCE output. |
47 |
However, this type of model only makes sense for external views of |
48 |
an opaque object. |
49 |
If a rounded box is inverted using |
50 |
.I \-i, |
51 |
then the corners and edges are modeled with polygons, instead. |
52 |
This option can also be forced by specifying a minimum number of |
53 |
segments with the |
54 |
.I \-n |
55 |
option. |
56 |
The |
57 |
.I \-s |
58 |
option controls whether surface normal smoothing is applied as well. |
59 |
.PP |
60 |
The |
61 |
.I \-o |
62 |
option specifies Wavefront .OBJ output, and |
63 |
also forces polygons to be used with the |
64 |
.I \-r |
65 |
option. |
66 |
If the |
67 |
.I \-s |
68 |
option is present, vertex normals are also produced for smooth rendering. |
69 |
.SH EXAMPLE |
70 |
To produce a rectangular box made of wood with rounded edges: |
71 |
.IP "" .2i |
72 |
genbox wood box1 5 8 3 \-r .5 > box1.rad |
73 |
.PP |
74 |
To produce a box made of crystal with beveled edges: |
75 |
.IP "" .2i |
76 |
genbox crystal box2 3 7 1 \-b .1 > box2.rad |
77 |
.PP |
78 |
To produce a transparent box with smoothed, rounded edges: |
79 |
.IP "" .2i |
80 |
genbox glassy box3 2 4 3 -r .25 -n 16 -s > box3.rad |
81 |
.SH AUTHOR |
82 |
Greg Ward |
83 |
.SH "SEE ALSO" |
84 |
genrev(1), gensurf(1), genworm(1), obj2mesh(1), obj2rad(1), |
85 |
robjutil(1), rpict(1), rvu(1), xform(1) |