Provided by: radiance_4R0+20110410-1build1_amd64

**NAME**

genworm - generate a RADIANCE description of a functional worm

**SYNOPSIS**

genwormmatname'x(t)''y(t)''z(t)''r(t)'nseg[-eexpr][-ffile]

**DESCRIPTION**

Genwormproduces a RADIANCE scene description of a worm defined by the parametric equationsx(t),y(t),z(t),andr(t)(the radius).Twill vary from 0 to 1 in steps of1/nseg.The surface will be composed ofnsegcones or cylinders andnseg+1spheres. The expressions are of the same type used in RADIANCE function files. Auxiliary expressions and/or files may be specified in any number of-eand-foptions.

**EXAMPLE**

To generate a banana: genworm yellow banana '0' '5*sin(t)' '5*cos(t)' '.4-(.5-t)*(.5-t)' 20

**AUTHOR**

Greg Ward

**BUGS**

Since the worm is constructed of intersecting surfaces, only opaque materials should be used with this object. Also, a worm cannot double back inside itself without making a mess.

**SEE** **ALSO**

genrbox(1), genrev(1), gensurf(1), icalc(1), rpict(1), rvu(1), xform(1)