| Routine ID: DRAW115 | |
|---|---|
| Author(s): | Submitted: 01.01.86 |
| Origin: P.Zanarini | Revised: 11.12.92 |
CALL GDRVOL (NNAMS,CHNAMS,LNUMBS,NRS,THETA,PHI,PSI,U0,V0,SU,SV) Draws an orthographic parallel projection or a perspective projection (depending on the option chosen via GDOPT) of the volume CHNAMS(N),LNUMBS(N) with all its descendants, at the position U0,V0 (user coordinates), with the scale factors SU and SV. The object is seen from THETA and PHI angles, and the resulting 2D projection is also rotated by an angle PSI on the screen plane. These parameters, as well as zoom parameters set by GDZOOM, define the current view parameters, and they are copied in /GCDRAW/. Attributes like colour, fill area, line width, line style, visibility, etc. can be set by the GSATT routine for CHNAMS(N) and or its descendants [GEOM 500]. This routine differs from GDRAW in the following aspects:
Two examples of use of GDRVOL are shown in fig
and
.
CHARACTER*4 CHNAMS(5)
INTEGER LNUMBS(5)
DATA CHNAMS/'OPAL','BRL-','EB ','EBB ','EBP '/
DATA LNUMBS/ 1 , 1 , 1 , 1 , 20 /
.
.
.
NRS=0
CALL GDRVOL(5,CHNAMS,LNUMBS,NRS,80.,135.,0.,13.,10.,0.03,0.03)
CALL GDAXIS(0.,0.,0.,200.)
C CALL GDXYZ(0)
Figure: Example of use of GDRVOL in the MAster Reference System
CHARACTER*4 CHNAMS(5)
INTEGER LNUMBS(5)
DATA CHNAMS/'OPAL','BRL-','EB ','EBB ','EBP '/
DATA LNUMBS/ 1 , 1 , 1 , 1 , 20 /
.
.
.
NRS=1
CALL GDRVOL(5,CHNAMS,LNUMBS,NRS,55.,135.,0.,5.,5.,0.035,0.035)
CALL GDAXIS(0.,0.,0.,200.)
C CALL GDXYZ(0)
Figure: Example of use of GDRVOL in the Daughter Reference System
P.Zanarini