HILLS(3D)

NAME
hills - generate test data for graph3d

SYNOPSIS
hills N n [h] [seed]

DESCRIPTION
Hills produces a surface with random ``hills'' which can be used test data for graph3d(3d). The surface is a N by N grid, there will be n hills, of height h (default 6), and seed (default pid) can be used to initialize the random number generator. The output of hills is an example the type of input that surface(3d) can accept, and provides useful test-data for playing with graph3d(3d).

EXAMPLE
hills 20 6 | surface | graph3d -plot | plot -T4014
hills 20 6 | surface -poly | graph3d -plot | plot -T4014
hills 20 6 | surface -hist | graph3d -plot -box | plot -T4014
hills 20 6 | surface -poly | graph3d -plot -border | plot -T4014
hills 20 6 | surface -poly -hist | graph3d -plot -box -orient -hide | plot -T4014
These commands, if executed in a Tektronics 4014 window (e.g. xterm under X11) will display some hills. The same commands could be executed in a different environment, and have their output redirected to a 4014 window. Graph3d-tek is a program compiled to produce 4014 output directly, so it can be run as follows:
hills 20 6 | surface | graph3d-tek
To print the output on the imagen, try something like:
hills 20 6 | surface | graph3d -plot | implot | lpr -Pimagen
To print POSTSCRIPT output, use:
hills 20 6 | surface -hist -poly | graph3d -ps -hide | pswrap | lpr -Pps
Note that POSTSCRIPT output could also be produced using psplot instead of implot in the previous command. However, graph3d can only do hidden line removal if graph3d directly produces POSTSCRIPT output. Thus, hidden line removal can be done on an imagen only if it can print POSTSCRIPT. Note also that surface must be given the -polygon option for graph3d to be able to do hidden line removal.

AUTHOR
Tony Plate Copyright (C) 1989 Tony Plate This program and documentations may be freely distributed and used, provided that this copyright notice is retained intact. There is no warranty with this software.

BUGS
The hills are actually pyramids.

SEE ALSO
surface(3d) graph3d(3d) graph3d-tek(3d) pswrap(3d)