home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
swCHIP 1991 January
/
swCHIP_95-1.bin
/
demo
/
wit4711
/
lib
/
help
/
ui
/
surface.
/
surface.bin
Wrap
Text File
|
1995-12-09
|
2KB
|
43 lines
OPERATOR
surface --- display 3D perspective view of image surface
DESCRIPTION
The surface operator generates a 3D perspective view of an image received at
its input port. The window consists of a viewing area and a control panel.
The 3D controls allow the user to adjust for horizontal angle (rotation on
image plane), vertical angle (rotation up and down), zoom, scale (Z = pixel
value * scale), pix/sq (pixels per square). and wireframe size (also in
pixels per square). Like images, the size of the display can be scaled by
scaling the window size using the resize corners.
The Pix/sq and Wireframe need further explanation. Pix/sq is the resolution at
which pixels are drawn as a rectangular surface in 3D. For example, if you
specify that Pix/sq is 8, then the image is divided into 8x8 squares, and
each square will be drawn as a 3D rectangular surface.
Wireframe works in conjunction with Pix/sq . On a monochrome workstation,
Wireframe only takes effect when Pix/sq is set to zero . Like Pix/sq , wireframe
also breaks up the image into square tiles. However, only the perimeters of
the tiles are drawn, and they are always drawn at the resolution of the
image. For example, if Wireframe is set at 8, then even though the image is
tiled up into 8x8 squares, the sides of the squares are not straight, but
follow the pixel to pixel variations along the lines. There will be no
hidden surface removal effect, though.
On a color workstation, if Wireframe is smaller than Pix/sq , it has the same
effect as if it's equal, and the wireframe simply supplies a high-contrast
outline to the image tiles (i.e. the wireframe sides are straight). But if
Wireframe is larger than Pix/sq , then the sides of the wireframe will be
drawn as multi-segment lines, the length of each segment being equal to the
tile size of Pix/sq .
When a hardcopy of surface is made using the Print panel, the surface will
take on the appearance as if it were to appear on a monochrome workstation.
So be sure to set Pix/sq to some not-too-small value (unless you set Pix/sq
to zero and plot the wireframe instead). Setting Pix/sq to a small value
(e.g. 2 or 4) will create a large PostScript file and may take a long time
to print.