Next: 7.4 Basic manipulations
Up: 7 Internal programs
Prev: 7.2 Position and clipping
Contents
SUBROUTINE CONTXT(IV, ITYP, PM, DIMX, DIMY, FLAG) REAL PM(2), DIMX, DIMY LOGICAL FLAG INTEGER IV, ITYP
defines the display context of the different views, where:
IV: defines the vertical axis w.r.t. the observer (1=OX, 2=OY, 3=OZ);
ITYP=0: coordinates in centimeters, ITYP=1: coordinates in percentages of the screen;
PM: coordinates of the center of the screen;
DIMX, DIMY: screen dimensions;
IFLAG = .TRUE.: generate the window.
The subroutines which follow are used to obtain different views of an object in the 3D space. They are, however, not used very often: we can obtain these different views via other methods by positioning the observer carefully and/or by the indicators (CLIP, NOPERS, ...).
SUBROUTINE AXONO(OBJET, PTREGA, ECHEL) REAL PTREGA(3), ECHEL EXTERNAL OBJET
presents an axonometric view of subroutine OBJET describing an object, where:
PTREGA(1:3): coordinates of the point viewed;
ECHEL: the scaling factor to change from the object's dimensions to the window's dimensions, in centimeters.
SUBROUTINE CAVAL(OBJET, PTREGA, ECHEL) REAL PTREGA(3), ECHEL EXTERNAL OBJET
presents a cavalier view of subroutine OBJET describing an object, where:
PTREGA(1:3): coordinates of the point viewed;
ECHEL: the scaling factor to change from the object's dimensions to the window's dimensions, in centimeters.
SUBROUTINE DESSU(OBJET, PTREGA, ECHEL) REAL PTREGA(3), ECHEL EXTERNAL OBJET
presents a bottom view of subroutine OBJET describing an object, where:
PTREGA(1:3): coordinates of the point viewed;
ECHEL: the scaling factor to change from the object's dimensions to the window's dimensions, in centimeters.
SUBROUTINE DROITE(OBJET, PTREGA, ECHEL) REAL PTREGA(3), ECHEL EXTERNAL OBJET
presents a right view of subroutine OBJET describing an object, where:
PTREGA(1:3): coordinates of the point viewed;
ECHEL: the scaling factor to change from the object's dimensions to the window's dimensions, in centimeters.
SUBROUTINE FACE(OBJET, PTREGA, ECHEL) REAL PTREGA(3), ECHEL EXTERNAL OBJET
presents a front view of subroutine OBJET describing an object, where:
PTREGA(1:3): coordinates of the point viewed;
ECHEL: the scaling factor to change from the object's dimensions to the window's dimensions, in centimeters.
SUBROUTINE PERSP(OBJET, OBS, PTREGA, ALPHA, FLAG, DMIN, DMAX) REAL OBS(3), PTREGA(3), ALPHA, DMIN, DMAX LOGICAL FLAG EXTERNAL OBJET
displays object OBJET in perspective, with context CONTXT, where:
PTREGA(1:3): coordinates of the point viewed;
OBS(1:3): coordinates of the observer;
ALPHA: vision half-angle in X;
DMIN,DMAX: see MASQU3;
FLAG: if .TRUE. use DMIN and DMAX;
ECHEL: the scaling factor to change from the object's dimensions to the window's dimensions, in centimeters.