Modulefpreviousupnextcontents[BIG][Normal][small]
Next: 3.2 Graphics instructions: 2D Up: 3 Creating a 2D image Prev: 3 Creating a 2D image Contents


3.1 Masks and windows

The independence of FORTRAN 3D with respect to the type of terminal used was mentioned earlier. We also talked about the vitual screen on which the object is constructed before producing the image. In this section we deal with the coordinates of this screen using a unitary system chosen by the user (Angström, centimeter, kilometer, light-year!...) with respect to the dimensions of the real object. This is the MASK.

If we wish the entire object to be visualized, all the points must be inside the mask . If the mask is too large, the object will appear small, and if the dimensions of the object are bigger that those of the mask, the entire object will not be seen. Thus, by playing with the coordinate system and the object's units, we eliminate the notion of screen coordinates advantageously.

zoom1.psfig:471Initial plotzoom2.psfig:471bZoom by changing the mask

It is necessary, secondly, to define a frame on the visualization surface which will contain the image inside the mask. For a plane object, this frame is defined using the following subroutines:

For certain particular applications, it could be advantageous not to take the clipping defined by MASQU2 into account. It is possible to govern this indicator by using the following subroutines:


Modulefpreviousupnextcontents[BIG][Normal][small]
Next: 3.2 Graphics instructions: 2D Up: 3 Creating a 2D image Prev: 3 Creating a 2D image Contents